Commit 5cec11b6 authored by Stefano Sabatini's avatar Stefano Sabatini Committed by Benoit Fouet

Make av_set_string() fail when number could not be set.

Patch by Stefano Sabatini stefano§sabatini-lalaATposte§it

Originally committed as revision 13155 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 7c55e71d
......@@ -182,7 +182,8 @@ const AVOption *av_set_string(void *obj, const char *name, const char *val){
}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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment