aboutsummaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorJai Menon2010-07-15 11:53:34 +0000
committerJai Menon2010-07-15 11:53:34 +0000
commit961e4a3389e348033312662c0581a0fb34eaa14b (patch)
tree901eddb229f933339c92b299c110e5d3463b9be3 /ffmpeg.c
parentea15d2000c99bc9e6ebdbd7eb4139207cf86a27b (diff)
FFmpeg : Close input file and free any related memory if
av_find_stream_info fails. Originally committed as revision 24247 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index d5fd6a04bb..de15898138 100644
--- 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);
}