Browse Source

ac3dec: simplify an expression

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

+ 2
- 3
libavcodec/ac3dec.c View File

@@ -178,9 +178,8 @@ static av_cold int ac3_decode_init(AVCodecContext *avctx)
avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;

/* allow downmixing to stereo or mono */
if (avctx->channels > 0 && avctx->request_channels > 0 &&
avctx->request_channels < avctx->channels &&
avctx->request_channels <= 2) {
if (avctx->request_channels > 0 && avctx->request_channels <= 2 &&
avctx->request_channels < avctx->channels) {
avctx->channels = avctx->request_channels;
}
s->downmixed = 1;


Loading…
Cancel
Save