Browse Source

dcadec: simplify an expression

Signed-off-by: Diego Biurrun <diego@biurrun.de>
tags/n2.2-rc1
Tim Walker Diego Biurrun 12 years ago
parent
commit
37a3cac78c
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavcodec/dcadec.c

+ 1
- 2
libavcodec/dcadec.c View 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;
}



Loading…
Cancel
Save