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
f0ea536c
Commit
f0ea536c
authored
Nov 25, 2015
by
Rodger Combs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/aac_ac3_parser: reindent
parent
9f5baf90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
22 deletions
+23
-22
aac_ac3_parser.c
libavcodec/aac_ac3_parser.c
+23
-22
No files found.
libavcodec/aac_ac3_parser.c
View file @
f0ea536c
...
...
@@ -79,31 +79,32 @@ get_next:
avctx
->
codec_id
=
s
->
codec_id
;
if
(
got_frame
)
{
/* Due to backwards compatible HE-AAC the sample rate, channel count,
and total number of samples found in an AAC ADTS header are not
reliable. Bit rate is still accurate because the total frame duration in
seconds is still correct (as is the number of bits in the frame). */
if
(
avctx
->
codec_id
!=
AV_CODEC_ID_AAC
)
{
avctx
->
sample_rate
=
s
->
sample_rate
;
/* Due to backwards compatible HE-AAC the sample rate, channel count,
and total number of samples found in an AAC ADTS header are not
reliable. Bit rate is still accurate because the total frame
duration in seconds is still correct (as is the number of bits in
the frame). */
if
(
avctx
->
codec_id
!=
AV_CODEC_ID_AAC
)
{
avctx
->
sample_rate
=
s
->
sample_rate
;
/* (E-)AC-3: allow downmixing to stereo or mono */
if
(
s
->
channels
>
1
&&
avctx
->
request_channel_layout
==
AV_CH_LAYOUT_MONO
)
{
avctx
->
channels
=
1
;
avctx
->
channel_layout
=
AV_CH_LAYOUT_MONO
;
}
else
if
(
s
->
channels
>
2
&&
avctx
->
request_channel_layout
==
AV_CH_LAYOUT_STEREO
)
{
avctx
->
channels
=
2
;
avctx
->
channel_layout
=
AV_CH_LAYOUT_STEREO
;
}
else
{
avctx
->
channels
=
s
->
channels
;
avctx
->
channel_layout
=
s
->
channel_layout
;
/* (E-)AC-3: allow downmixing to stereo or mono */
if
(
s
->
channels
>
1
&&
avctx
->
request_channel_layout
==
AV_CH_LAYOUT_MONO
)
{
avctx
->
channels
=
1
;
avctx
->
channel_layout
=
AV_CH_LAYOUT_MONO
;
}
else
if
(
s
->
channels
>
2
&&
avctx
->
request_channel_layout
==
AV_CH_LAYOUT_STEREO
)
{
avctx
->
channels
=
2
;
avctx
->
channel_layout
=
AV_CH_LAYOUT_STEREO
;
}
else
{
avctx
->
channels
=
s
->
channels
;
avctx
->
channel_layout
=
s
->
channel_layout
;
}
s1
->
duration
=
s
->
samples
;
avctx
->
audio_service_type
=
s
->
service_type
;
}
s1
->
duration
=
s
->
samples
;
avctx
->
audio_service_type
=
s
->
service_type
;
}
avctx
->
bit_rate
=
s
->
bit_rate
;
avctx
->
bit_rate
=
s
->
bit_rate
;
}
return
i
;
...
...
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