diff options
author | Jai Menon <jmenon86@gmail.com> | 2010-07-15 11:53:34 +0000 |
---|---|---|
committer | Jai Menon <jmenon86@gmail.com> | 2010-07-15 11:53:34 +0000 |
commit | 961e4a3389e348033312662c0581a0fb34eaa14b (patch) | |
tree | 901eddb229f933339c92b299c110e5d3463b9be3 /ffmpeg.c | |
parent | ea15d2000c99bc9e6ebdbd7eb4139207cf86a27b (diff) | |
download | ffmpeg-961e4a3389e348033312662c0581a0fb34eaa14b.tar.gz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |