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

Oleg mybrokenbeat at gmail.com
Sun Mar 24 18:50:47 CET 2013

Because in while() you're changing pkt.data field and av_free() in av_free_packet() will free invalid pointer after you complete loop. It may cause crashing or memory leak. 
24.03.2013, в 19:00, Pauli Suuraho написал(а):

> Works perfectly! Thank you both for your help.
> One last question to make sure I understood everything..
> >pkt.data = orig_ptr;
> >pkt.size = orig_size;
> Why do you set the data back before you free the packet? I tried without it and it seemed to work. Is it needed?
> -Pauli
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user

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

More information about the Libav-user mailing list