]> git.sesse.net Git - ffmpeg/commitdiff
lavfi: fix compatibility code for old vf_scale options syntax
authorAnton Khirnov <anton@khirnov.net>
Tue, 14 May 2013 06:14:21 +0000 (08:14 +0200)
committerAnton Khirnov <anton@khirnov.net>
Wed, 15 May 2013 05:46:04 +0000 (07:46 +0200)
Currently it would incorrectly trigger on a string that contains a '='
but does not contain a ':', e.g. flags=<flags>.

libavfilter/avfilter.c

index 8f028e1122fdf7d0341ff57157c5cd285809634c..e2062a1643edb9a892a389a1485b5332cff72379 100644 (file)
@@ -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;