[FFmpeg-cvslog] r24247 - trunk/ffmpeg.c
jai_menon
subversion
Thu Jul 15 13:53:34 CEST 2010
Author: jai_menon
Date: Thu Jul 15 13:53:34 2010
New Revision: 24247
Log:
FFmpeg : Close input file and free any related memory if
av_find_stream_info fails.
Modified:
trunk/ffmpeg.c
Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c Thu Jul 15 13:43:09 2010 (r24246)
+++ trunk/ffmpeg.c Thu Jul 15 13:53:34 2010 (r24247)
@@ -3203,6 +3203,7 @@ static void opt_input_file(const char *f
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);
}
More information about the ffmpeg-cvslog
mailing list