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

Unified · Split

libavfilter/avfilter.c+1−1
@@ -555,7 +555,7 @@ int avfilter_init_str(AVFilterContext *filter, const char *args) · 554 unmodified lines
555555
556556 #if FF_API_OLD_FILTER_OPTS
557557 if (!strcmp(filter->filter->name, "scale") &&
558− strchr(args, ':') < strchr(args, '=')) {
558+ strchr(args, ':') && strchr(args, ':') < strchr(args, '=')) {
559559 /* old w:h:flags=<flags> syntax */
560560 char *copy = av_strdup(args);
561561 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