[Ffmpeg-devel] dealloc AVFrame

Michael Niedermayer michaelni
Fri Feb 9 02:02:00 CET 2007


On Wed, Feb 07, 2007 at 02:33:57AM +0100, Axel Gallus wrote:
> When i use av_alloc_frame ( frame )
> a frame structure gets initialized.
> After that if i use avcodec_decode_video() on that frame, the data field of 
> that frame gets filled with
> uncompressed picture data.
> At the end i use av_free ( frame ) and the structure of that frame gets 
> freed, but what's with the data field?
> Do i have to do a av_free ( frame->data ) before av_free ( frame )?
> Obviously not, but maybe someone is able to give me a hint how this data 
> stuff is handled internally by ffmpeg.

a hint hmm ... see AVCodecContext.get/release_buffer()

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070209/b1401b61/attachment.pgp>

More information about the ffmpeg-devel mailing list