aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2011-10-02 12:05:20 +0200
committerMarton Balint <cus@passwd.hu>2011-10-02 21:21:46 +0200
commit1e7f7dc2d1d7867bbec8a5a1f5841fe969ac902a (patch)
tree79561b06b295e5f407e69c10b10b4c115fcbfc34
parent92dac3a9dd4544f1a15d52f363db08109d48be55 (diff)
downloadffmpeg-1e7f7dc2d1d7867bbec8a5a1f5841fe969ac902a.tar.gz
ffplay: remove now unnecessary request_channels, we set it now with options
-rw-r--r--ffplay.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/ffplay.c b/ffplay.c
index e04b69a9fd..66a17e813b 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -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;