I understand that some video (and audio) codecs cache frames to decode B frames for example. In order to retrieve the last frames of such movies, it is needed to call av_read_frame and wait for an error of AVERROR_EOF which then means I need to pass packets with NULL and size 0. This is all dandy. However, I would like to know in advance how many times I will need to pass packets with NULL and size 0. Is there a way to know this?

--
Gonzalo Garramuño

_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to