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
1e7f7dc2
Commit
1e7f7dc2
authored
Oct 02, 2011
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: remove now unnecessary request_channels, we set it now with options
parent
92dac3a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
ffplay.c
ffplay.c
+0
-9
No files found.
ffplay.c
View file @
1e7f7dc2
...
...
@@ -2160,15 +2160,6 @@ static int stream_component_open(VideoState *is, int stream_index)
opts
=
filter_codec_opts
(
codec_opts
,
avctx
->
codec_id
,
ic
,
ic
->
streams
[
stream_index
]);
/* prepare audio output */
if
(
avctx
->
codec_type
==
AVMEDIA_TYPE_AUDIO
)
{
if
(
avctx
->
channels
>
0
)
{
avctx
->
request_channels
=
FFMIN
(
2
,
avctx
->
channels
);
}
else
{
avctx
->
request_channels
=
2
;
}
}
codec
=
avcodec_find_decoder
(
avctx
->
codec_id
);
switch
(
avctx
->
codec_type
){
case
AVMEDIA_TYPE_AUDIO
:
if
(
audio_codec_name
)
codec
=
avcodec_find_decoder_by_name
(
audio_codec_name
);
break
;
...
...
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