History

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>.

Anton Khirnov committed 13 years ago

Commit ffba2051 parent 096696e1 file · +1 −1Browse files

Showing the changes to libavfilter/avfilter.c (1 of 1 file). Show all

Unified · Split

libavfilter/avfilter.c+1−1
@@ -555,7 +555,7 @@ int avfilter_init_str(AVFilterContext *filter, const char *args) · 554 unmodified lines
555 555
556#if FF_API_OLD_FILTER_OPTS556#if FF_API_OLD_FILTER_OPTS
557 if (!strcmp(filter->filter->name, "scale") &&557 if (!strcmp(filter->filter->name, "scale") &&
558 strchr(args, ':') < strchr(args, '=')) {558 strchr(args, ':') && strchr(args, ':') < strchr(args, '=')) {
559 /* old w:h:flags=<flags> syntax */559 /* old w:h:flags=<flags> syntax */
560 char *copy = av_strdup(args);560 char *copy = av_strdup(args);
561 char *p;561 char *p;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t