changeset 6799:2854b51e7f47 libavcodec

Make av_set_string() fail when number could not be set. Patch by Stefano Sabatini stefano¡øsabatini-lalaATposte¡øit
author benoit
date Thu, 15 May 2008 01:03:48 +0000
parents b87b1aba5d89
children e3c9fa010282
files opt.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/opt.c	Wed May 14 16:30:37 2008 +0000
+++ b/opt.c	Thu May 15 01:03:48 2008 +0000
@@ -182,7 +182,8 @@
             }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;