diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-25 18:59:58 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-03 15:41:19 +0200 |
commit | 65f68514486fade5c6ab973c90047a422198ce07 (patch) | |
tree | 3d1f4a0c33c3ac8a119be7fb42660ca60c7e1382 /libavfilter/vf_spp.h | |
parent | 25ea90b733883d0cbfdb76014b619a1b37489fca (diff) | |
download | ffmpeg-65f68514486fade5c6ab973c90047a422198ce07.tar.gz |
avcodec/frame_thread_encoder: Stop serializing unreferencing AVFrames
Currently, the frame-threaded decoding API still supports thread-unsafe
callbacks. If one uses a thread-unsafe get_buffer2() callback,
calls to av_frame_unref() by the decoder are serialized, because
it is presumed that the underlying deallocator is thread-unsafe.
The frame-threaded encoder seems to have been written with this
restriction in mind: It always serializes unreferencing its AVFrames,
although no documentation forces it to do so.
This commit schedules to change this behaviour as soon as thread-unsafe
callbacks are removed. For this reason, the FF_API_THREAD_SAFE_CALLBACKS
define is reused.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_spp.h')
0 files changed, 0 insertions, 0 deletions