1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

dcadec: simplify an expression

Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
Tim Walker 2013-11-18 12:41:43 +01:00 committed by Diego Biurrun
parent a553c6a347
commit 37a3cac78c

View File

@ -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;
}