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
a3735bb9
Commit
a3735bb9
authored
Jan 18, 2013
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavr: cosmetics: reindent
parent
1647da89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
audio_mix.c
libavresample/audio_mix.c
+14
-14
No files found.
libavresample/audio_mix.c
View file @
a3735bb9
...
...
@@ -673,20 +673,20 @@ int ff_audio_mix_set_matrix(AudioMix *am, const double *matrix, int stride)
am->matrix = (void **)am->matrix_## type;
if
(
am
->
in_matrix_channels
&&
am
->
out_matrix_channels
)
{
switch
(
am
->
coeff_type
)
{
case
AV_MIX_COEFF_TYPE_Q8
:
CONVERT_MATRIX
(
q8
,
av_clip_int16
(
lrint
(
256
.
0
*
v
)))
break
;
case
AV_MIX_COEFF_TYPE_Q15
:
CONVERT_MATRIX
(
q15
,
av_clipl_int32
(
llrint
(
32768
.
0
*
v
)))
break
;
case
AV_MIX_COEFF_TYPE_FLT
:
CONVERT_MATRIX
(
flt
,
v
)
break
;
default
:
av_log
(
am
->
avr
,
AV_LOG_ERROR
,
"Invalid mix coeff type
\n
"
);
return
AVERROR
(
EINVAL
);
}
switch
(
am
->
coeff_type
)
{
case
AV_MIX_COEFF_TYPE_Q8
:
CONVERT_MATRIX
(
q8
,
av_clip_int16
(
lrint
(
256
.
0
*
v
)))
break
;
case
AV_MIX_COEFF_TYPE_Q15
:
CONVERT_MATRIX
(
q15
,
av_clipl_int32
(
llrint
(
32768
.
0
*
v
)))
break
;
case
AV_MIX_COEFF_TYPE_FLT
:
CONVERT_MATRIX
(
flt
,
v
)
break
;
default
:
av_log
(
am
->
avr
,
AV_LOG_ERROR
,
"Invalid mix coeff type
\n
"
);
return
AVERROR
(
EINVAL
);
}
}
ret
=
mix_function_init
(
am
);
...
...
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