[SCM] libav/experimental: FFmpeg : Close input file and free any related memory if av_find_stream_info fails.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:11:21 UTC 2013


The following commit has been merged in the experimental branch:
commit 961e4a3389e348033312662c0581a0fb34eaa14b
Author: Jai Menon <jmenon86 at gmail.com>
Date:   Thu Jul 15 11:53:34 2010 +0000

    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

diff --git a/ffmpeg.c b/ffmpeg.c
index d5fd6a0..de15898 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);
     }
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list