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
ffb0af7f
Commit
ffb0af7f
authored
Nov 18, 2013
by
Tim Walker
Committed by
Diego Biurrun
Nov 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ac3dec: simplify an expression
Signed-off-by:
Diego Biurrun
<
diego@biurrun.de
>
parent
57f13fd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
ac3dec.c
libavcodec/ac3dec.c
+2
-3
No files found.
libavcodec/ac3dec.c
View file @
ffb0af7f
...
...
@@ -178,9 +178,8 @@ static av_cold int ac3_decode_init(AVCodecContext *avctx)
avctx
->
sample_fmt
=
AV_SAMPLE_FMT_FLTP
;
/* allow downmixing to stereo or mono */
if
(
avctx
->
channels
>
0
&&
avctx
->
request_channels
>
0
&&
avctx
->
request_channels
<
avctx
->
channels
&&
avctx
->
request_channels
<=
2
)
{
if
(
avctx
->
request_channels
>
0
&&
avctx
->
request_channels
<=
2
&&
avctx
->
request_channels
<
avctx
->
channels
)
{
avctx
->
channels
=
avctx
->
request_channels
;
}
s
->
downmixed
=
1
;
...
...
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