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
73ebbfdf
Commit
73ebbfdf
authored
Mar 14, 2015
by
Christophe Gisquet
Committed by
Michael Niedermayer
Mar 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ac3dec: cosmetics
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
0c3339f4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
ac3dec.c
libavcodec/ac3dec.c
+3
-5
No files found.
libavcodec/ac3dec.c
View file @
73ebbfdf
...
...
@@ -924,14 +924,13 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
bin
=
s
->
spx_src_start_freq
;
for
(
bnd
=
0
;
bnd
<
s
->
num_spx_bands
;
bnd
++
)
{
int
bandsize
;
int
bandsize
=
s
->
spx_band_sizes
[
bnd
]
;
int
spx_coord_exp
,
spx_coord_mant
;
INTFLOAT
nratio
,
sblend
,
nblend
;
#if USE_FIXED
int64_t
accu
;
/* calculate blending factors */
bandsize
=
s
->
spx_band_sizes
[
bnd
];
accu
=
(
int64_t
)((
bin
<<
23
)
+
(
bandsize
<<
22
))
*
s
->
spx_dst_end_freq
;
int64_t
accu
=
((
bin
<<
23
)
+
(
bandsize
<<
22
))
*
(
int64_t
)
s
->
spx_dst_end_freq
;
nratio
=
(
int
)(
accu
>>
32
);
nratio
-=
spx_blend
<<
18
;
...
...
@@ -951,7 +950,6 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
float
spx_coord
;
/* calculate blending factors */
bandsize
=
s
->
spx_band_sizes
[
bnd
];
nratio
=
((
float
)((
bin
+
(
bandsize
>>
1
)))
/
s
->
spx_dst_end_freq
)
-
spx_blend
;
nratio
=
av_clipf
(
nratio
,
0
.
0
f
,
1
.
0
f
);
nblend
=
sqrtf
(
3
.
0
f
*
nratio
);
// noise is scaled by sqrt(3)
...
...
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