From ffba2053edfc177d217bf4a95edf51cd0fc40753 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 14 May 2013 08:14:21 +0200 Subject: [PATCH] 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=. --- libavfilter/avfilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 8f028e1122f..e2062a1643e 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -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= syntax */ char *copy = av_strdup(args); char *p; -- 2.39.5