[FFmpeg-cvslog] r13155 - trunk/libavcodec/opt.c

benoit subversion
Thu May 15 03:03:48 CEST 2008


Author: benoit
Date: Thu May 15 03:03:48 2008
New Revision: 13155

Log:
Make av_set_string() fail when number could not be set.
Patch by Stefano Sabatini stefano?sabatini-lalaATposte?it


Modified:
   trunk/libavcodec/opt.c

Modified: trunk/libavcodec/opt.c
==============================================================================
--- trunk/libavcodec/opt.c	(original)
+++ trunk/libavcodec/opt.c	Thu May 15 03:03:48 2008
@@ -182,7 +182,8 @@ const AVOption *av_set_string(void *obj,
             }else if(cmd=='-')
                 d= -d;
 
-            av_set_number(obj, name, d, 1, 1);
+            if (!av_set_number(obj, name, d, 1, 1))
+                return NULL;
             val+= i;
             if(!*val)
                 return o;




More information about the ffmpeg-cvslog mailing list