Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
23a750c9
Commit
23a750c9
authored
Apr 11, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: do not warn inappropriately with aevalsrc.
parent
937325f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
avfilter.c
libavfilter/avfilter.c
+12
-5
No files found.
libavfilter/avfilter.c
View file @
23a750c9
...
...
@@ -763,6 +763,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
char
*
copy
=
av_strdup
(
args
);
char
*
p
=
copy
;
int
nb_leading
=
0
;
// number of leading colons to skip
int
deprecated
=
0
;
if
(
!
copy
)
{
ret
=
AVERROR
(
ENOMEM
);
...
...
@@ -784,12 +785,10 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
p
++
;
}
if
(
strchr
(
p
,
':'
))
{
av_log
(
filter
,
AV_LOG_WARNING
,
"This syntax is deprecated. Use "
"'|' to separate the list items.
\n
"
);
}
deprecated
=
strchr
(
p
,
':'
)
!=
NULL
;
if
(
!
strcmp
(
filter
->
filter
->
name
,
"aevalsrc"
))
{
deprecated
=
0
;
while
((
p
=
strchr
(
p
,
':'
))
&&
p
[
1
]
!=
':'
)
{
const
char
*
epos
=
strchr
(
p
+
1
,
'='
);
const
char
*
spos
=
strchr
(
p
+
1
,
':'
);
...
...
@@ -798,14 +797,22 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
p
++
;
break
;
}
/* next token does not contain a '=', assume a channel expression */
deprecated
=
1
;
*
p
++
=
'|'
;
}
if
(
p
&&
*
p
==
':'
)
if
(
p
&&
*
p
==
':'
)
{
// double sep '::' found
deprecated
=
1
;
memmove
(
p
,
p
+
1
,
strlen
(
p
));
}
}
else
while
((
p
=
strchr
(
p
,
':'
)))
*
p
++
=
'|'
;
if
(
deprecated
)
av_log
(
filter
,
AV_LOG_WARNING
,
"This syntax is deprecated. Use "
"'|' to separate the list items.
\n
"
);
av_log
(
filter
,
AV_LOG_DEBUG
,
"compat: called with args=[%s]
\n
"
,
copy
);
ret
=
process_options
(
filter
,
&
options
,
copy
);
av_freep
(
&
copy
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment