reset manually selected codecs at the end of opt_input_file, to avoid propagating...
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Fri, 21 Dec 2007 10:08:43 +0000 (10:08 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Fri, 21 Dec 2007 10:08:43 +0000 (10:08 +0000)
Originally committed as revision 11289 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index 1fbae5e..9ffa2fb 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2790,6 +2790,9 @@ static void opt_input_file(const char *filename)
     video_channel = 0;
 
     rate_emu = 0;
+    av_freep(&video_codec_name);
+    av_freep(&audio_codec_name);
+    av_freep(&subtitle_codec_name);
 }
 
 static void check_audio_video_sub_inputs(int *has_video_ptr, int *has_audio_ptr,