]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ac3dec.c
Document new APIs for av_packet_{un, }pack_dictionary()
[ffmpeg] / libavcodec / ac3dec.c
index 1603f4f426e275c209eeaff11f1cf0ebe091d861..28157af0da6358e959c253914ddac727407e294d 100644 (file)
@@ -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;