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>.
pull/18/head
Anton Khirnov 12 years ago
parent 096696ef0d
commit ffba2053ed
  1. 2
      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;

Loading…
Cancel
Save