Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
9b2c3250
Commit
9b2c3250
authored
Nov 18, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_sofalizer: use av_sscanf()
parent
80265dba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
af_sofalizer.c
libavfilter/af_sofalizer.c
+3
-3
No files found.
libavfilter/af_sofalizer.c
View file @
9b2c3250
...
@@ -136,7 +136,7 @@ static int parse_channel_name(char **arg, int *rchannel, char *buf)
...
@@ -136,7 +136,7 @@ static int parse_channel_name(char **arg, int *rchannel, char *buf)
int64_t
layout
,
layout0
;
int64_t
layout
,
layout0
;
/* try to parse a channel name, e.g. "FL" */
/* try to parse a channel name, e.g. "FL" */
if
(
sscanf
(
*
arg
,
"%7[A-Z]%n"
,
buf
,
&
len
))
{
if
(
av_
sscanf
(
*
arg
,
"%7[A-Z]%n"
,
buf
,
&
len
))
{
layout0
=
layout
=
av_get_channel_layout
(
buf
);
layout0
=
layout
=
av_get_channel_layout
(
buf
);
/* channel_id <- first set bit in layout */
/* channel_id <- first set bit in layout */
for
(
i
=
32
;
i
>
0
;
i
>>=
1
)
{
for
(
i
=
32
;
i
>
0
;
i
>>=
1
)
{
...
@@ -174,11 +174,11 @@ static void parse_speaker_pos(AVFilterContext *ctx, int64_t in_channel_layout)
...
@@ -174,11 +174,11 @@ static void parse_speaker_pos(AVFilterContext *ctx, int64_t in_channel_layout)
av_log
(
ctx
,
AV_LOG_WARNING
,
"Failed to parse
\'
%s
\'
as channel name.
\n
"
,
buf
);
av_log
(
ctx
,
AV_LOG_WARNING
,
"Failed to parse
\'
%s
\'
as channel name.
\n
"
,
buf
);
continue
;
continue
;
}
}
if
(
sscanf
(
arg
,
"%f %f"
,
&
azim
,
&
elev
)
==
2
)
{
if
(
av_
sscanf
(
arg
,
"%f %f"
,
&
azim
,
&
elev
)
==
2
)
{
s
->
vspkrpos
[
out_ch_id
].
set
=
1
;
s
->
vspkrpos
[
out_ch_id
].
set
=
1
;
s
->
vspkrpos
[
out_ch_id
].
azim
=
azim
;
s
->
vspkrpos
[
out_ch_id
].
azim
=
azim
;
s
->
vspkrpos
[
out_ch_id
].
elev
=
elev
;
s
->
vspkrpos
[
out_ch_id
].
elev
=
elev
;
}
else
if
(
sscanf
(
arg
,
"%f"
,
&
azim
)
==
1
)
{
}
else
if
(
av_
sscanf
(
arg
,
"%f"
,
&
azim
)
==
1
)
{
s
->
vspkrpos
[
out_ch_id
].
set
=
1
;
s
->
vspkrpos
[
out_ch_id
].
set
=
1
;
s
->
vspkrpos
[
out_ch_id
].
azim
=
azim
;
s
->
vspkrpos
[
out_ch_id
].
azim
=
azim
;
s
->
vspkrpos
[
out_ch_id
].
elev
=
0
;
s
->
vspkrpos
[
out_ch_id
].
elev
=
0
;
...
...
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