diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2009-01-06 22:11:04 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2009-01-06 22:11:04 +0000 |
commit | 094d9df72e8372b0a7c6e9381b375b438db3fa3c (patch) | |
tree | bc1ecfa16f0b5b5dd14c9a9910f343d4a11b22e5 /ffmpeg.c | |
parent | 16cda1535edf853c31506b2c737d0a6873744550 (diff) | |
download | ffmpeg-094d9df72e8372b0a7c6e9381b375b438db3fa3c.tar.gz |
free all allocated metadata structures
Originally committed as revision 16457 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -396,9 +396,17 @@ static int av_exit(int ret) if (!(s->oformat->flags & AVFMT_NOFILE) && s->pb) url_fclose(s->pb); for(j=0;j<s->nb_streams;j++) { + av_metadata_free(&s->streams[j]->metadata); av_free(s->streams[j]->codec); av_free(s->streams[j]); } + for(j=0;j<s->nb_programs;j++) { + av_metadata_free(&s->programs[j]->metadata); + } + for(j=0;j<s->nb_chapters;j++) { + av_metadata_free(&s->chapters[j]->metadata); + } + av_metadata_free(&s->metadata); av_free(s); } for(i=0;i<nb_input_files;i++) |