Commit e7519b65 authored by benoit's avatar benoit

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

Patch by Stefano Sabatini stefano§sabatini-lalaATposte§it


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13155 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d3137297
......@@ -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