mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-23 02:11:14 +08: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user