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
4d7a4215
Commit
4d7a4215
authored
Apr 30, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ac3enc: put the counting of stereo rematrixing bits in the same place to
make the code easier to understand.
parent
257de756
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
ac3enc.c
libavcodec/ac3enc.c
+4
-7
No files found.
libavcodec/ac3enc.c
View file @
4d7a4215
...
...
@@ -838,10 +838,6 @@ static void count_frame_bits_fixed(AC3EncodeContext *s)
if
(
!
blk
)
frame_bits
++
;
/* stereo rematrixing */
if
(
s
->
channel_mode
==
AC3_CHMODE_STEREO
)
frame_bits
++
;
/* exponent strategy */
frame_bits
+=
2
*
s
->
fbw_channels
;
if
(
s
->
lfe_on
)
...
...
@@ -931,9 +927,10 @@ static void count_frame_bits(AC3EncodeContext *s)
/* audio blocks */
for
(
blk
=
0
;
blk
<
AC3_MAX_BLOCKS
;
blk
++
)
{
/* stereo rematrixing */
if
(
s
->
channel_mode
==
AC3_CHMODE_STEREO
&&
s
->
blocks
[
blk
].
new_rematrixing_strategy
)
{
frame_bits
+=
s
->
num_rematrixing_bands
;
if
(
s
->
channel_mode
==
AC3_CHMODE_STEREO
)
{
frame_bits
++
;
if
(
s
->
blocks
[
blk
].
new_rematrixing_strategy
)
frame_bits
+=
s
->
num_rematrixing_bands
;
}
/* bandwidth codes & gain range */
...
...
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