[FFmpeg-cvslog] avplay: don't request a stereo downmix

Justin Ruggles git at videolan.org
Mon Dec 12 01:43:50 CET 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sat Dec 10 16:59:55 2011 -0500| [b11ce85664caa69d6117e692c7ac49be4f7493cc] | committer: Justin Ruggles

avplay: don't request a stereo downmix

Multi-channel output works just fine for me with SDL 1.2.14.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b11ce85664caa69d6117e692c7ac49be4f7493cc
---

 avplay.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/avplay.c b/avplay.c
index 69cd617..fd9774e 100644
--- a/avplay.c
+++ b/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]);
 
-    /* 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);
     avctx->debug_mv = debug_mv;
     avctx->debug = debug;



More information about the ffmpeg-cvslog mailing list