Commit 5539fea7 authored by Laurent Aimar's avatar Laurent Aimar

Set decoder_t::i_extra_picture_buffers in avcodec decoder.

It should fix #5753.
There can still be an issue with an insufficient input caching.
parent 74e141c5
......@@ -367,6 +367,11 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
p_sys->p_context->get_format = ffmpeg_GetFormat;
}
#endif
#ifdef HAVE_AVCODEC_MT
if( p_sys->p_context->thread_type & FF_THREAD_FRAME )
p_dec->i_extra_picture_buffers = 2 * p_sys->p_context->thread_count;
#endif
/* ***** misc init ***** */
p_sys->i_pts = VLC_TS_INVALID;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment