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:
John Bradley 2015-03-10 12:55:53 -05:00
parent e13bb8f479
commit 361522198e

View file

@ -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);