Commit 85403685 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '37a3cac7'

* commit '37a3cac7':
  dcadec: simplify an expression
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 56e12278 37a3cac7
......@@ -2480,8 +2480,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