[Libav-user] Multithreaded decoding delays PTS by num of threads
dev at rarevision.com
Fri Nov 18 20:42:10 CET 2011
I am playing around with multithreaded H.264 decoding with git from a
few days ago, but I noticed that frames are returned with a delay
equal to the number of threads assigned to the decoder context. The
way I can tell if I am getting decoded frames is by checking
got_picture_ptr, which works even though I get errors from
av_read_frame(). The only hiccup is that I get crashes when trying to
decode x number of frames before the end of the stream, x being the
number of threads. So, if the stream has 100 frames and I am using 4
threads, avcodec_decode_video2() crashes while trying to decode frame
96 of 99.
Is there something else I need to do when setting my decoder context
to more than one thread?
More information about the Libav-user