FFmpeg : Close input file and free any related memory if
authorJai Menon <jmenon86@gmail.com>
Thu, 15 Jul 2010 11:53:34 +0000 (11:53 +0000)
committerJai Menon <jmenon86@gmail.com>
Thu, 15 Jul 2010 11:53:34 +0000 (11:53 +0000)
av_find_stream_info fails.

Originally committed as revision 24247 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index d5fd6a0..de15898 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3203,6 +3203,7 @@ static void opt_input_file(const char *filename)
     ret = av_find_stream_info(ic);
     if (ret < 0 && verbose >= 0) {
         fprintf(stderr, "%s: could not find codec parameters\n", filename);
+        av_close_input_file(ic);
         av_exit(1);
     }