aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-12-21 10:08:43 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-12-21 10:08:43 +0000
commita06a18c55dfade76ba5f560d9d8be71951638792 (patch)
tree43aa2ac0fa06e0075368ad4e8b5d4730466764ea /ffmpeg.c
parent815c81c0a732c38675733dbb501d7a5c5fce556e (diff)
downloadffmpeg-a06a18c55dfade76ba5f560d9d8be71951638792.tar.gz
reset manually selected codecs at the end of opt_input_file, to avoid propagating selection to output file
Originally committed as revision 11289 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 1fbae5e515..9ffa2fb9a3 100644
--- 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,