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
8b804859
Commit
8b804859
authored
Feb 26, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_compand: also support '|' as seperator
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
1df1a1fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
af_compand.c
libavfilter/af_compand.c
+4
-4
No files found.
libavfilter/af_compand.c
View file @
8b804859
...
@@ -134,7 +134,7 @@ static void count_items(char *item_str, int *nb_items)
...
@@ -134,7 +134,7 @@ static void count_items(char *item_str, int *nb_items)
*
nb_items
=
1
;
*
nb_items
=
1
;
for
(
p
=
item_str
;
*
p
;
p
++
)
{
for
(
p
=
item_str
;
*
p
;
p
++
)
{
if
(
*
p
==
' '
)
if
(
*
p
==
' '
||
*
p
==
'|'
)
(
*
nb_items
)
++
;
(
*
nb_items
)
++
;
}
}
}
}
...
@@ -329,7 +329,7 @@ static int config_output(AVFilterLink *outlink)
...
@@ -329,7 +329,7 @@ static int config_output(AVFilterLink *outlink)
p
=
s
->
attacks
;
p
=
s
->
attacks
;
for
(
i
=
0
,
new_nb_items
=
0
;
i
<
nb_attacks
;
i
++
)
{
for
(
i
=
0
,
new_nb_items
=
0
;
i
<
nb_attacks
;
i
++
)
{
char
*
tstr
=
av_strtok
(
p
,
" "
,
&
saveptr
);
char
*
tstr
=
av_strtok
(
p
,
"
|
"
,
&
saveptr
);
p
=
NULL
;
p
=
NULL
;
new_nb_items
+=
sscanf
(
tstr
,
"%lf"
,
&
s
->
channels
[
i
].
attack
)
==
1
;
new_nb_items
+=
sscanf
(
tstr
,
"%lf"
,
&
s
->
channels
[
i
].
attack
)
==
1
;
if
(
s
->
channels
[
i
].
attack
<
0
)
if
(
s
->
channels
[
i
].
attack
<
0
)
...
@@ -339,7 +339,7 @@ static int config_output(AVFilterLink *outlink)
...
@@ -339,7 +339,7 @@ static int config_output(AVFilterLink *outlink)
p
=
s
->
decays
;
p
=
s
->
decays
;
for
(
i
=
0
,
new_nb_items
=
0
;
i
<
nb_decays
;
i
++
)
{
for
(
i
=
0
,
new_nb_items
=
0
;
i
<
nb_decays
;
i
++
)
{
char
*
tstr
=
av_strtok
(
p
,
" "
,
&
saveptr
);
char
*
tstr
=
av_strtok
(
p
,
"
|
"
,
&
saveptr
);
p
=
NULL
;
p
=
NULL
;
new_nb_items
+=
sscanf
(
tstr
,
"%lf"
,
&
s
->
channels
[
i
].
decay
)
==
1
;
new_nb_items
+=
sscanf
(
tstr
,
"%lf"
,
&
s
->
channels
[
i
].
decay
)
==
1
;
if
(
s
->
channels
[
i
].
decay
<
0
)
if
(
s
->
channels
[
i
].
decay
<
0
)
...
@@ -357,7 +357,7 @@ static int config_output(AVFilterLink *outlink)
...
@@ -357,7 +357,7 @@ static int config_output(AVFilterLink *outlink)
#define S(x) s->segments[2 * ((x) + 1)]
#define S(x) s->segments[2 * ((x) + 1)]
p
=
s
->
points
;
p
=
s
->
points
;
for
(
i
=
0
,
new_nb_items
=
0
;
i
<
nb_points
;
i
++
)
{
for
(
i
=
0
,
new_nb_items
=
0
;
i
<
nb_points
;
i
++
)
{
char
*
tstr
=
av_strtok
(
p
,
" "
,
&
saveptr
);
char
*
tstr
=
av_strtok
(
p
,
"
|
"
,
&
saveptr
);
p
=
NULL
;
p
=
NULL
;
if
(
sscanf
(
tstr
,
"%lf/%lf"
,
&
S
(
i
).
x
,
&
S
(
i
).
y
)
!=
2
)
{
if
(
sscanf
(
tstr
,
"%lf/%lf"
,
&
S
(
i
).
x
,
&
S
(
i
).
y
)
!=
2
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
av_log
(
ctx
,
AV_LOG_ERROR
,
...
...
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