mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavfi: fix compatibility code for old vf_scale options syntax
Currently it would incorrectly trigger on a string that contains a '=' but does not contain a ':', e.g. flags=<flags>.
This commit is contained in:
parent
096696ef0d
commit
ffba2053ed
@ -555,7 +555,7 @@ int avfilter_init_str(AVFilterContext *filter, const char *args)
|
||||
|
||||
#if FF_API_OLD_FILTER_OPTS
|
||||
if (!strcmp(filter->filter->name, "scale") &&
|
||||
strchr(args, ':') < strchr(args, '=')) {
|
||||
strchr(args, ':') && strchr(args, ':') < strchr(args, '=')) {
|
||||
/* old w:h:flags=<flags> syntax */
|
||||
char *copy = av_strdup(args);
|
||||
char *p;
|
||||
|
Loading…
Reference in New Issue
Block a user