Merge commit 'ffb0af7f17eb0da86e9b140e86a1404d3c6c9e79'
* commit 'ffb0af7f17eb0da86e9b140e86a1404d3c6c9e79': ac3dec: simplify an expression Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
61f40fbb52
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user