Commit ffb0af7f authored by Tim Walker's avatar Tim Walker Committed by Diego Biurrun

ac3dec: simplify an expression

Signed-off-by: 's avatarDiego Biurrun <diego@biurrun.de>
parent 57f13fd7
......@@ -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