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
c545876d
Commit
c545876d
authored
May 04, 2013
by
Claudio Freire
Committed by
Michael Niedermayer
May 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AAC encoder: Fixed a rounding bug in psy's channel bitrate computation.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
adaa7743
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
aacpsy.c
libavcodec/aacpsy.c
+1
-1
No files found.
libavcodec/aacpsy.c
View file @
c545876d
...
...
@@ -316,7 +316,7 @@ static av_cold int psy_3gpp_init(FFPsyContext *ctx) {
AacPsyCoeffs
*
coeffs
=
pctx
->
psy_coef
[
j
];
const
uint8_t
*
band_sizes
=
ctx
->
bands
[
j
];
float
line_to_frequency
=
ctx
->
avctx
->
sample_rate
/
(
j
?
256
.
f
:
2048
.
0
f
);
float
avg_chan_bits
=
chan_bitrate
/
ctx
->
avctx
->
sample_rate
*
(
j
?
128
.
0
f
:
1024
.
0
f
)
;
float
avg_chan_bits
=
chan_bitrate
*
(
j
?
128
.
0
f
:
1024
.
0
f
)
/
ctx
->
avctx
->
sample_rate
;
/* reference encoder uses 2.4% here instead of 60% like the spec says */
float
bark_pe
=
0
.
024
f
*
PSY_3GPP_BITS_TO_PE
(
avg_chan_bits
)
/
num_bark
;
float
en_spread_low
=
j
?
PSY_3GPP_EN_SPREAD_LOW_S
:
PSY_3GPP_EN_SPREAD_LOW_L
;
...
...
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