summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-08-30 15:46:55 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-08-30 18:08:22 +0200
commit8b85b9fa42fbbfb7fd9431479988be92eb4a73d9 (patch)
tree3e182595e4f940626caf18f33ea03352ac387b3c /ffmpeg.c
parent6bdd9fbc89b15bd90cb5e83517b3949c740d02d6 (diff)
ffmpeg: reset streamid_map between output files.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index a035bc3204..6cc3cc9840 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -538,7 +538,6 @@ static int exit_program(int ret)
fclose(vstats_file);
av_free(vstats_filename);
- av_free(streamid_map);
av_free(meta_data_maps);
av_freep(&input_streams);
@@ -3860,6 +3859,8 @@ static int opt_output_file(const char *opt, const char *filename)
metadata_chapters_autocopy = 1;
av_freep(&stream_maps);
nb_stream_maps = 0;
+ av_freep(&streamid_map);
+ nb_streamid_map = 0;
av_dict_free(&codec_names);