[FFmpeg-cvslog] avconv: reset streamid_map between output files.

Anton Khirnov git at videolan.org
Fri Aug 19 01:12:07 CEST 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Aug 17 19:11:54 2011 +0200| [e922bbfa769cc0f84f09d4027559a23b83e8478c] | committer: Anton Khirnov

avconv: reset streamid_map between output files.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e922bbfa769cc0f84f09d4027559a23b83e8478c
---

 avconv.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/avconv.c b/avconv.c
index 12ee3dc..4a5830f 100644
--- a/avconv.c
+++ b/avconv.c
@@ -457,7 +457,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);
@@ -3695,6 +3694,8 @@ static void opt_output_file(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);
 



More information about the ffmpeg-cvslog mailing list