1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

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
This commit is contained in:
Stefano Sabatini 2008-05-15 01:03:48 +00:00 committed by Benoit Fouet
parent 7c55e71d51
commit 5cec11b612

View File

@ -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;