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
458fbee2
Commit
458fbee2
authored
Dec 14, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_sofalizer: warn if user gives unknown channel names
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
c4afd4ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
af_sofalizer.c
libavfilter/af_sofalizer.c
+5
-3
No files found.
libavfilter/af_sofalizer.c
View file @
458fbee2
...
...
@@ -373,9 +373,8 @@ error:
return
ret
;
}
static
int
parse_channel_name
(
char
**
arg
,
int
*
rchannel
)
static
int
parse_channel_name
(
char
**
arg
,
int
*
rchannel
,
char
*
buf
)
{
char
buf
[
8
];
int
len
,
i
,
channel_id
=
0
;
int64_t
layout
,
layout0
;
...
...
@@ -409,12 +408,15 @@ static void parse_speaker_pos(AVFilterContext *ctx, int64_t in_channel_layout)
p
=
args
;
while
((
arg
=
av_strtok
(
p
,
"|"
,
&
tokenizer
)))
{
char
buf
[
8
];
float
azim
,
elev
;
int
out_ch_id
;
p
=
NULL
;
if
(
parse_channel_name
(
&
arg
,
&
out_ch_id
))
if
(
parse_channel_name
(
&
arg
,
&
out_ch_id
,
buf
))
{
av_log
(
ctx
,
AV_LOG_WARNING
,
"Failed to parse
\'
%s
\'
as channel name.
\n
"
,
buf
);
continue
;
}
if
(
sscanf
(
arg
,
"%f %f"
,
&
azim
,
&
elev
)
==
2
)
{
s
->
vspkrpos
[
out_ch_id
].
set
=
1
;
s
->
vspkrpos
[
out_ch_id
].
azim
=
azim
;
...
...
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