You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
ac3dec: simplify an expression
Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
committed by
Diego Biurrun
parent
57f13fd7e9
commit
ffb0af7f17
@@ -178,9 +178,8 @@ static av_cold int ac3_decode_init(AVCodecContext *avctx)
|
|||||||
avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
|
avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
|
||||||
|
|
||||||
/* allow downmixing to stereo or mono */
|
/* allow downmixing to stereo or mono */
|
||||||
if (avctx->channels > 0 && avctx->request_channels > 0 &&
|
if (avctx->request_channels > 0 && avctx->request_channels <= 2 &&
|
||||||
avctx->request_channels < avctx->channels &&
|
avctx->request_channels < avctx->channels) {
|
||||||
avctx->request_channels <= 2) {
|
|
||||||
avctx->channels = avctx->request_channels;
|
avctx->channels = avctx->request_channels;
|
||||||
}
|
}
|
||||||
s->downmixed = 1;
|
s->downmixed = 1;
|
||||||
|
Reference in New Issue
Block a user