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
7bc5f6e5
Commit
7bc5f6e5
authored
Apr 19, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indent
Originally committed as revision 12901 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
12eef728
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
aac_ac3_parser.c
libavcodec/aac_ac3_parser.c
+14
-14
No files found.
libavcodec/aac_ac3_parser.c
View file @
7bc5f6e5
...
...
@@ -67,20 +67,20 @@ get_next:
*
poutbuf
=
buf
;
*
poutbuf_size
=
buf_size
;
/* update codec info */
avctx
->
sample_rate
=
s
->
sample_rate
;
/* allow downmixing to stereo (or mono for AC3) */
if
(
avctx
->
request_channels
>
0
&&
avctx
->
request_channels
<
s
->
channels
&&
(
avctx
->
request_channels
<=
2
||
(
avctx
->
request_channels
==
1
&&
avctx
->
codec_id
==
CODEC_ID_AC3
)))
{
avctx
->
channels
=
avctx
->
request_channels
;
}
else
{
avctx
->
channels
=
s
->
channels
;
}
avctx
->
bit_rate
=
s
->
bit_rate
;
avctx
->
frame_size
=
s
->
samples
;
/* update codec info */
avctx
->
sample_rate
=
s
->
sample_rate
;
/* allow downmixing to stereo (or mono for AC3) */
if
(
avctx
->
request_channels
>
0
&&
avctx
->
request_channels
<
s
->
channels
&&
(
avctx
->
request_channels
<=
2
||
(
avctx
->
request_channels
==
1
&&
avctx
->
codec_id
==
CODEC_ID_AC3
)))
{
avctx
->
channels
=
avctx
->
request_channels
;
}
else
{
avctx
->
channels
=
s
->
channels
;
}
avctx
->
bit_rate
=
s
->
bit_rate
;
avctx
->
frame_size
=
s
->
samples
;
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