Commit 61f40fbb authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'ffb0af7f'

* commit 'ffb0af7f':
  ac3dec: simplify an expression
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents df87cfd7 ffb0af7f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment