diff options
-rw-r--r-- | libavutil/opt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c index 505e0103db..8e9802fa48 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -219,7 +219,7 @@ static int set_string_number(void *obj, void *target_obj, const AVOption *o, con buf[i++] = *val; } - for (; i < sizeof(buf) - 1 && val[i] && val[i] != '+' && val[i] != '-'; i++) + for (; i < sizeof(buf) - 1 && val[i] && (o->type != AV_OPT_TYPE_FLAGS || val[i] != '+' && val[i] != '-'); i++) buf[i] = val[i]; buf[i] = 0; |