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
e8b552a8
Commit
e8b552a8
authored
Dec 14, 2010
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetics: pretty-printing
Originally committed as revision 25974 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ce67b7cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ac3enc.c
libavcodec/ac3enc.c
+2
-2
No files found.
libavcodec/ac3enc.c
View file @
e8b552a8
...
...
@@ -1304,7 +1304,7 @@ static av_cold int ac3_encode_init(AVCodecContext *avctx)
s
->
frame_size
=
s
->
frame_size_min
;
/* set bandwidth */
if
(
avctx
->
cutoff
)
{
if
(
avctx
->
cutoff
)
{
/* calculate bandwidth based on user-specified cutoff frequency */
int
cutoff
=
av_clip
(
avctx
->
cutoff
,
1
,
s
->
sample_rate
>>
1
);
int
fbw_coeffs
=
cutoff
*
2
*
AC3_MAX_COEFS
/
s
->
sample_rate
;
...
...
@@ -1315,7 +1315,7 @@ static av_cold int ac3_encode_init(AVCodecContext *avctx)
size, so that we avoid annoying high frequency artifacts */
bw_code
=
50
;
}
for
(
ch
=
0
;
ch
<
s
->
fbw_channels
;
ch
++
)
{
for
(
ch
=
0
;
ch
<
s
->
fbw_channels
;
ch
++
)
{
/* bandwidth for each channel */
s
->
bandwidth_code
[
ch
]
=
bw_code
;
s
->
nb_coefs
[
ch
]
=
bw_code
*
3
+
73
;
...
...
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