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
8ee77fc8
Commit
8ee77fc8
authored
Jan 04, 2012
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: fix invalid wanted_channel_layout calculation
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
5d94f28e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ffplay.c
ffplay.c
+1
-1
No files found.
ffplay.c
View file @
8ee77fc8
...
...
@@ -2263,7 +2263,7 @@ static int stream_component_open(VideoState *is, int stream_index)
if
(
env
)
wanted_channel_layout
=
av_get_default_channel_layout
(
SDL_atoi
(
env
));
if
(
!
wanted_channel_layout
)
{
wanted_channel_layout
=
(
avctx
->
channel_layout
&&
avctx
->
channels
==
av_get_channel_layout_nb_channels
(
avctx
->
channel
s
))
?
avctx
->
channel_layout
:
av_get_default_channel_layout
(
avctx
->
channels
);
wanted_channel_layout
=
(
avctx
->
channel_layout
&&
avctx
->
channels
==
av_get_channel_layout_nb_channels
(
avctx
->
channel
_layout
))
?
avctx
->
channel_layout
:
av_get_default_channel_layout
(
avctx
->
channels
);
wanted_channel_layout
&=
~
AV_CH_LAYOUT_STEREO_DOWNMIX
;
wanted_nb_channels
=
av_get_channel_layout_nb_channels
(
wanted_channel_layout
);
/* SDL only supports 1, 2, 4 or 6 channels at the moment, so we have to make sure not to request anything else. */
...
...
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