[vlc-devel] [PATCH] Avcodec: limit the number of threads automatically selected to 12

Laurent Aimar fenrir at elivagar.org
Tue Jan 3 23:41:09 CET 2012

On Tue, Jan 03, 2012 at 11:36:36PM +0100, Denis Charmet wrote:
> >  For a quick test, could you test by increasing the value dpb_size
> > in src/input/decoder.c by the number of threads (in the function
> > vout_new_buffer()). If it fixes the issue, decoder_t will have to be
> > extended to allow transmitting the value.
> Using the number of thread doesn't work an H264 pool use a dpb_size of
> 18 and 6 threads are enough to cause the assertion failure. With 6
> threads I can't reproduce the assertion failure with a dpb_size of 21.
> I'll let ffmpeg-mt expert determine what may be the best value for this.
 The value should be the dpb_size of the H264 streams (1-16, it depends
on the way the stream was created) + number of threads + a small value
(it depends on the way ffmpeg works and/or the way we use it, in my last
test it seems that 2 was good enough).



More information about the vlc-devel mailing list