git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
096696e
)
lavfi: fix compatibility code for old vf_scale options syntax
author
Anton Khirnov
<anton@khirnov.net>
Tue, 14 May 2013 06:14:21 +0000
(08:14 +0200)
committer
Anton 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
patch
|
blob
|
history
diff --git
a/libavfilter/avfilter.c
b/libavfilter/avfilter.c
index
8f028e1
..
e2062a1
100644
(file)
--- a/
libavfilter/avfilter.c
+++ b/
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;