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
1df1a1fe
Commit
1df1a1fe
authored
Feb 26, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_compand_fork: avoid strtok_r() so as not to break build
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
22307f17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
af_compand_fork.c
libavfilter/af_compand_fork.c
+4
-5
No files found.
libavfilter/af_compand_fork.c
View file @
1df1a1fe
...
...
@@ -27,8 +27,7 @@
* audio compand filter
*/
#include <string.h>
#include "libavutil/avstring.h"
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "libavutil/mathematics.h"
...
...
@@ -368,7 +367,7 @@ static int config_output(AVFilterLink *outlink)
p
=
s
->
attacks
;
for
(
i
=
0
,
new_nb_items
=
0
;
i
<
nb_attacks
;
i
++
)
{
char
*
tstr
=
strtok_r
(
p
,
"|"
,
&
saveptr
);
char
*
tstr
=
av_strtok
(
p
,
"|"
,
&
saveptr
);
p
=
NULL
;
new_nb_items
+=
sscanf
(
tstr
,
"%f"
,
&
s
->
channels
[
i
].
attack
)
==
1
;
if
(
s
->
channels
[
i
].
attack
<
0
)
{
...
...
@@ -380,7 +379,7 @@ static int config_output(AVFilterLink *outlink)
p
=
s
->
decays
;
for
(
i
=
0
,
new_nb_items
=
0
;
i
<
nb_decays
;
i
++
)
{
char
*
tstr
=
strtok_r
(
p
,
"|"
,
&
saveptr
);
char
*
tstr
=
av_strtok
(
p
,
"|"
,
&
saveptr
);
p
=
NULL
;
new_nb_items
+=
sscanf
(
tstr
,
"%f"
,
&
s
->
channels
[
i
].
decay
)
==
1
;
if
(
s
->
channels
[
i
].
decay
<
0
)
{
...
...
@@ -401,7 +400,7 @@ static int config_output(AVFilterLink *outlink)
#define S(x) s->segments[2 * ((x) + 1)]
p
=
s
->
points
;
for
(
i
=
0
,
new_nb_items
=
0
;
i
<
nb_points
;
i
++
)
{
char
*
tstr
=
strtok_r
(
p
,
"|"
,
&
saveptr
);
char
*
tstr
=
av_strtok
(
p
,
"|"
,
&
saveptr
);
p
=
NULL
;
if
(
sscanf
(
tstr
,
"%f/%f"
,
&
S
(
i
).
x
,
&
S
(
i
).
y
)
!=
2
)
{
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