[Ffmpeg-devel] dealloc AVFrame

John Kelley john
Wed Feb 7 05:01:11 CET 2007

On 2/6/07, Axel Gallus <uh5d at rz.uni-karlsruhe.de> 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.
> Thx
> A.Gallus

I may be wrong but I believe it is bad etiquette to reply an entire
message digest to the list. Please only quote the relevant message
when replying

 - John

More information about the ffmpeg-devel mailing list