[libav-api] libvpx threads bug/fix

Janne Grunau janne-libav at jannau.net
Tue Jan 10 17:38:26 CET 2012


On 2012-01-10 13:00:08 +0000, Evgeny Yakimov wrote:
> I apologise in advance if this is not the correct way to submit
> bugs/patches.

preferred way would be git diff or git format-patch formatted patches
but it's not that important for such simple bugs.

> I encountered a bug with libvpx in that, although the threads parameter is
> forwarded using:
> enccfg.g_threads      = avctx->thread_count;
> and multithreading is supported by libvpx, the threading capability flag is
> not set and as a result thread_count=1 is always set during "
> validate_thread_parameters<http://ffmpeg.org/doxygen/trunk/pthread_8c.html#e405eb489c19e417b70fcd334562f699>"
> function.
> I've added the CODEC_CAP_AUTO_THREADS to the capabilities list and it
> appears to be working now:

Yes, that is all needed. Thanks for noticing. The same commit broke
thread count for otherexternel codecs too. I'll fix them all.


More information about the libav-api mailing list