Reimar Döffinger <[email protected]> added the comment:

On Sun, Nov 29, 2009 at 11:30:41AM +0000, Igor wrote:
>               for(uint32_t i=0;i< FormatCtx->nb_streams;i++) {
>                       st = FormatCtx->streams[i];
>                       if (st->parser) {
>                               av_parser_close(st->parser);
>                               av_free_packet(&st->cur_pkt);
>                       }
>                       av_metadata_free(&st->metadata);
>                       av_free(st->index_entries);
>                       av_free(st->codec->extradata);
>                       av_free(st->codec);
>                       av_free(st->priv_data);
>                       av_free(st);
>               }

Slightly unrelated, but ffmpeg.c seems to need far fewer frees.
Regardless, a patch to add av_close_output_file would probably
be welcome and should save you the effort of having to update this
list of frees with future FFmpeg changes...

_____________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1577>
_____________________________________________________

Reply via email to