[Libav-user] What is the correct way to read frames

Pauli Suuraho pauli.suuraho at gmail.com
Sun Mar 24 16:42:15 CET 2013


> This code is not very readable, due to the ugly c++ coding style and
bloat.

Oh, sorry you had problems reading my code.

>If I read it correctly, you are forgetting to flush the decoder after the
>end of the stream. You have to feed empty packets to the decoder until it
>returns no frame.

That's it! demuxing.c example had example how to flush the codec.

Now I'm nicely getting all the frames, well at least if there is one frame
per packet.

-Pauli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130324/be61fc25/attachment.html>


More information about the Libav-user mailing list