]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ac3dec.c
lavu/frame: put frame QP elements under a new version guard
[ffmpeg] / libavcodec / ac3dec.c
index 398224753f99e28a3eeb8fcc89c95fa3a649206f..6df697e855b8195d629239149129136b24b6b34b 100644 (file)
@@ -208,14 +208,6 @@ static av_cold int ac3_decode_init(AVCodecContext *avctx)
         avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
 
     /* allow downmixing to stereo or mono */
-#if FF_API_REQUEST_CHANNELS
-FF_DISABLE_DEPRECATION_WARNINGS
-    if (avctx->request_channels == 1)
-        avctx->request_channel_layout = AV_CH_LAYOUT_MONO;
-    else if (avctx->request_channels == 2)
-        avctx->request_channel_layout = AV_CH_LAYOUT_STEREO;
-FF_ENABLE_DEPRECATION_WARNINGS
-#endif
     if (avctx->channels > 1 &&
         avctx->request_channel_layout == AV_CH_LAYOUT_MONO)
         avctx->channels = 1;