mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avutil/opt.c: fix bug when parsing option
fix these strange behavior: -af flanger=delay=10 [OK] -af flanger=delay=1e1 [OK] -af flanger=delay=1e+1 [Error] -af flanger=delay=0.1 [OK] -af flanger=delay=1e-1 [Error] Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4054171666
commit
4927c0a988
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user