Merge commit '37a3cac78c6b13dc4e2c4f33ef53eed722d6f7b9'
* commit '37a3cac78c6b13dc4e2c4f33ef53eed722d6f7b9': dcadec: simplify an expression Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -2480,8 +2480,7 @@ static av_cold int dca_decode_init(AVCodecContext *avctx)
|
|||||||
avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
|
avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
|
||||||
|
|
||||||
/* allow downmixing to stereo */
|
/* allow downmixing to stereo */
|
||||||
if (avctx->channels > 0 && avctx->request_channels < avctx->channels &&
|
if (avctx->channels > 2 && avctx->request_channels == 2) {
|
||||||
avctx->request_channels == 2) {
|
|
||||||
avctx->channels = avctx->request_channels;
|
avctx->channels = avctx->request_channels;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user