[Libav-user] bug report: avcodec_decode_video2 & pthreads
wm4
nfxjfg at googlemail.com
Mon Oct 13 19:10:02 CEST 2014
On Mon, 13 Oct 2014 17:02:09 +0000 (UTC)
Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> Ben Mesander <ben at ...> writes:
>
> > If the underlying ffmpeg library is compiled withe
> > --disable-pthreads the code always works correctly. If
> > that is not the case, sometimes avcodec_decode_video2()
> > returns the number of bytes in the PNG, but does not
> > set the frame complete flag to true.
>
> The decoder (luckily!) supports multi-threading. If you
> don't like it (you just have to call avcodec_decode_video2()
> iirc), just set the thread count to 1 before opening the
> decoder.
Well, duh, he's reporting a bug with it, not that he doesn't like it.
More information about the Libav-user
mailing list