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
3336110a
Commit
3336110a
authored
May 25, 2008
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetics: indent
Originally committed as revision 13398 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ecfe94b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
ac3dec.c
libavcodec/ac3dec.c
+16
-16
No files found.
libavcodec/ac3dec.c
View file @
3336110a
...
...
@@ -1190,23 +1190,23 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data, int *data_size,
/* if frame is ok, set audio parameters */
if
(
!
err
)
{
avctx
->
sample_rate
=
s
->
sample_rate
;
avctx
->
bit_rate
=
s
->
bit_rate
;
/* channel config */
s
->
out_channels
=
s
->
channels
;
if
(
avctx
->
request_channels
>
0
&&
avctx
->
request_channels
<=
2
&&
avctx
->
request_channels
<
s
->
channels
)
{
s
->
out_channels
=
avctx
->
request_channels
;
s
->
output_mode
=
avctx
->
request_channels
==
1
?
AC3_CHMODE_MONO
:
AC3_CHMODE_STEREO
;
}
avctx
->
channels
=
s
->
out_channels
;
avctx
->
sample_rate
=
s
->
sample_rate
;
avctx
->
bit_rate
=
s
->
bit_rate
;
/* channel config */
s
->
out_channels
=
s
->
channels
;
if
(
avctx
->
request_channels
>
0
&&
avctx
->
request_channels
<=
2
&&
avctx
->
request_channels
<
s
->
channels
)
{
s
->
out_channels
=
avctx
->
request_channels
;
s
->
output_mode
=
avctx
->
request_channels
==
1
?
AC3_CHMODE_MONO
:
AC3_CHMODE_STEREO
;
}
avctx
->
channels
=
s
->
out_channels
;
/* set downmixing coefficients if needed */
if
(
s
->
channels
!=
s
->
out_channels
&&
!
((
s
->
output_mode
&
AC3_OUTPUT_LFEON
)
&&
s
->
fbw_channels
==
s
->
out_channels
))
{
set_downmix_coeffs
(
s
);
}
/* set downmixing coefficients if needed */
if
(
s
->
channels
!=
s
->
out_channels
&&
!
((
s
->
output_mode
&
AC3_OUTPUT_LFEON
)
&&
s
->
fbw_channels
==
s
->
out_channels
))
{
set_downmix_coeffs
(
s
);
}
}
/* parse the audio blocks */
...
...
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