[FFmpeg-cvslog] ffmpeg: fix 10l (use of uninitilaized variable)

Michael Niedermayer git at videolan.org
Sat Sep 22 22:13:28 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Sep 22 22:09:41 2012 +0200| [eb949544caab31116743fbc63ba643916d84cedf] | committer: Michael Niedermayer

ffmpeg: fix 10l (use of uninitilaized variable)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eb949544caab31116743fbc63ba643916d84cedf
---

 ffmpeg_opt.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index 0bdbd67..e46880c 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -56,13 +56,11 @@
 
 #define MATCH_PER_TYPE_OPT(name, type, outvar, fmtctx, mediatype)\
 {\
-    int i, ret;\
+    int i;\
     for (i = 0; i < o->nb_ ## name; i++) {\
         char *spec = o->name[i].specifier;\
         if (!strcmp(spec, mediatype))\
             outvar = o->name[i].u.type;\
-        else if (ret < 0)\
-            exit_program(1);\
     }\
 }
 char *vstats_filename;



More information about the ffmpeg-cvslog mailing list