mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 11:49:48 +00:00
Fix + - bug with non flags.
Originally committed as revision 13243 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ad9d62ef22
commit
4a13a2d4f7
@ -179,8 +179,10 @@ const AVOption *av_set_string(void *obj, const char *name, const char *val){
|
||||
if(o->type == FF_OPT_TYPE_FLAGS){
|
||||
if (cmd=='+') d= av_get_int(obj, name, NULL) | (int64_t)d;
|
||||
else if(cmd=='-') d= av_get_int(obj, name, NULL) &~(int64_t)d;
|
||||
}else if(cmd=='-')
|
||||
d= -d;
|
||||
}else{
|
||||
if (cmd=='+') d= av_get_double(obj, name, NULL) + d;
|
||||
else if(cmd=='-') d= av_get_double(obj, name, NULL) - d;
|
||||
}
|
||||
|
||||
if (!av_set_number(obj, name, d, 1, 1))
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user