Commit 37a3cac7 authored by Tim Walker's avatar Tim Walker Committed by Diego Biurrun
Browse files

dcadec: simplify an expression


Signed-off-by: default avatarDiego Biurrun <diego@biurrun.de>
parent a553c6a3
......@@ -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;
}
......
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