[Libav-user] bug report: avcodec_decode_video2 & pthreads
Carl Eugen Hoyos
cehoyos at ag.or.at
Mon Oct 13 19:02:09 CEST 2014
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.
Carl Eugen
More information about the Libav-user
mailing list