On Apr 10, 2010, at 4:07 AM, Thomas Worth wrote:

I have a loop that decodes frames using avcodec_decode_video2(), and
am spawning threads to convert the data put into the AVFrame struct
and write it to disk. However, even though I allocated multiple
structs to hold the picture data, frames are overwriting each other:

Are you serializing access to the file? Possibly the frames are fine but all the threads are doing overlapping writes to the file.

Bruce

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to