Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
69d4dbfd
Commit
69d4dbfd
authored
Nov 18, 2013
by
Tim Walker
Committed by
Diego Biurrun
Nov 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aac_ac3_parser: simplify an expression
Signed-off-by:
Diego Biurrun
<
diego@biurrun.de
>
parent
37a3cac7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
aac_ac3_parser.c
libavcodec/aac_ac3_parser.c
+3
-7
No files found.
libavcodec/aac_ac3_parser.c
View file @
69d4dbfd
...
...
@@ -82,13 +82,9 @@ get_next:
if
(
avctx
->
codec_id
!=
AV_CODEC_ID_AAC
)
{
avctx
->
sample_rate
=
s
->
sample_rate
;
/* allow downmixing to stereo (or mono for AC-3) */
if
(
avctx
->
request_channels
>
0
&&
avctx
->
request_channels
<
s
->
channels
&&
(
avctx
->
request_channels
<=
2
||
(
avctx
->
request_channels
==
1
&&
(
avctx
->
codec_id
==
AV_CODEC_ID_AC3
||
avctx
->
codec_id
==
AV_CODEC_ID_EAC3
))))
{
/* (E-)AC-3: allow downmixing to stereo or mono */
if
(
avctx
->
request_channels
>
0
&&
avctx
->
request_channels
<=
2
&&
avctx
->
request_channels
<
s
->
channels
)
{
avctx
->
channels
=
avctx
->
request_channels
;
}
else
{
avctx
->
channels
=
s
->
channels
;
...
...
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