[Ffmpeg-devel] [PATCH] free codec extradata
Måns Rullgård
mru
Fri Jun 16 00:12:47 CEST 2006
Many of the lavf demuxers allocate space in AVCodecContext.extradata,
but only a few of them free it. It makes sense to me to free this
data in av_close_input_file, especially since av_find_stream_info can
allocate it as well. The attached patch makes this change. Did I
miss something, or is this not the proper way for some reason?
The situation is similar with the encoders in lavc. IMHO anyone who
allocates memory should be responsible for freeing it, except when it
can be done some place that is common for all (such as av_close_input_file
for demuxers).
--
M?ns Rullg?rd
mru at inprovide.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lavf-free-extradata.patch
Type: text/x-patch
Size: 3207 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060615/57ce3f72/attachment.bin>
More information about the ffmpeg-devel
mailing list