deps-libff: Workaround to PNG multithreaded bug in ffmpeg
FFMpeg has an issue where png decoding will not correctly begin until its optimal-thread-detection finishes in multi-threaded mode. This unfortunately is after decoding has begun.
This commit is contained in:
parent
e13bb8f479
commit
361522198e
4
deps/libff/libff/ff-demuxer.c
vendored
4
deps/libff/libff/ff-demuxer.c
vendored
@ -246,6 +246,10 @@ static bool find_decoder(struct ff_demuxer *demuxer, AVStream *stream)
|
||||
// > 1
|
||||
codec_context->refcounted_frames = 1;
|
||||
|
||||
// png decoder has serious issues with multiple threads
|
||||
if (codec_context->codec_id == AV_CODEC_ID_PNG)
|
||||
codec_context->thread_count = 1;
|
||||
|
||||
if (demuxer->options.is_hw_decoding) {
|
||||
AVHWAccel *hwaccel = find_hwaccel_codec(codec_context);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user