Re: [FFmpeg-devel] [PATCH] lavc/videotoolbox: fix threaded decoding

2018-02-05 Thread Aman Gupta
On Fri, Feb 2, 2018 at 6:50 PM, Rodger Combs wrote: > AVHWAccel.end_frame can run on a worker thread. The assumption of the > frame threading code is that the worker thread will change the AVFrame > image data, not the AVFrame fields. So the AVFrame fields are not synced

[FFmpeg-devel] [PATCH] lavc/videotoolbox: fix threaded decoding

2018-02-02 Thread Rodger Combs
AVHWAccel.end_frame can run on a worker thread. The assumption of the frame threading code is that the worker thread will change the AVFrame image data, not the AVFrame fields. So the AVFrame fields are not synced back to the main thread. But this breaks videotoolbox due to its special