OSDN Git Service

dcadec: simplify an expression
authorTim Walker <tdskywalker@gmail.com>
Mon, 18 Nov 2013 11:41:43 +0000 (12:41 +0100)
committerDiego Biurrun <diego@biurrun.de>
Tue, 19 Nov 2013 01:02:49 +0000 (02:02 +0100)
Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavcodec/dcadec.c

index c80bd81..7af5e5c 100644 (file)
@@ -1922,8 +1922,7 @@ static av_cold int dca_decode_init(AVCodecContext *avctx)
     avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
 
     /* allow downmixing to stereo */
-    if (avctx->channels > 0 && avctx->request_channels < avctx->channels &&
-        avctx->request_channels == 2) {
+    if (avctx->channels > 2 && avctx->request_channels == 2) {
         avctx->channels = avctx->request_channels;
     }