Module: libav Branch: master Commit: ffba2053edfc177d217bf4a95edf51cd0fc40753
Author: Anton Khirnov <[email protected]> Committer: Anton Khirnov <[email protected]> Date: Tue May 14 08:14:21 2013 +0200 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>. --- libavfilter/avfilter.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 8f028e1..e2062a1 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=<flags> syntax */ char *copy = av_strdup(args); char *p; _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
