mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 12:56:44 +08:00
avplay: don't request a stereo downmix
Multi-channel output works just fine for me with SDL 1.2.14.
This commit is contained in:
9
avplay.c
9
avplay.c
@ -2175,15 +2175,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]);
|
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);
|
codec = avcodec_find_decoder(avctx->codec_id);
|
||||||
avctx->debug_mv = debug_mv;
|
avctx->debug_mv = debug_mv;
|
||||||
avctx->debug = debug;
|
avctx->debug = debug;
|
||||||
|
Reference in New Issue
Block a user