Browse Source

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>.
tags/n2.0
Anton Khirnov 12 years ago
parent
commit
ffba2053ed
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/avfilter.c

+ 1
- 1
libavfilter/avfilter.c View 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;


Loading…
Cancel
Save