diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-11-26 23:59:39 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-12-04 15:46:46 +0100 |
commit | ba96cdd551e7bf938ae8af90e14498edd09ee71a (patch) | |
tree | 03f572ea6f0c57c6e7cf957d654da42d72c9055f /libavfilter/f_reverse.c | |
parent | 4e1fee405f0cbe09747f548943c083f1dc91a19e (diff) | |
download | ffmpeg-ba96cdd551e7bf938ae8af90e14498edd09ee71a.tar.gz |
avcodec/cri: Make decoder init-threadsafe
The only thing that stands in the way of adding the
FF_CODEC_CAP_INIT_THREADSAFE flag to the Cintel RAW decoder is its usage
of ff_codec_open2_recursive(): This function requires its caller to hold
the lock for the mutex that guards initialization of AVCodecContexts
whose codecs have a non-threadsafe init function and only callers whose
codec does not have the FF_CODEC_CAP_INIT_THREADSAFE flag set hold said
lock (the others don't need to care about said lock). But one can set
the flag if one switches to avcodec_open2() at the same time.
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavfilter/f_reverse.c')
0 files changed, 0 insertions, 0 deletions