aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/alac.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/alac.c')
-rw-r--r--libavcodec/alac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 6f6a379a07..83b2c1b247 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -598,7 +598,7 @@ static av_cold int alac_decode_init(AVCodecContext * avctx)
return -1;
}
- req_packed = !av_sample_fmt_is_planar(avctx->request_sample_fmt);
+ req_packed = LIBAVCODEC_VERSION_MAJOR < 55 && !av_sample_fmt_is_planar(avctx->request_sample_fmt);
switch (alac->sample_size) {
case 16: avctx->sample_fmt = req_packed ? AV_SAMPLE_FMT_S16 : AV_SAMPLE_FMT_S16P;
break;