aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/apedec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-05-09 12:28:10 +0200
committerAnton Khirnov <anton@khirnov.net>2023-05-15 10:24:54 +0200
commit8b20d0dcb5cfa8dc34830acdd719fc65b8b5ef67 (patch)
tree6e7d46e73362c1701fe42cc6290aedb9401baf63 /libavcodec/apedec.c
parent51d6ae099f281fecaab874037225b884eeb17794 (diff)
downloadffmpeg-8b20d0dcb5cfa8dc34830acdd719fc65b8b5ef67.tar.gz
lavc: deprecate AV_CODEC_CAP_SUBFRAMES
There is nothing meaningful the caller can do with it.
Diffstat (limited to 'libavcodec/apedec.c')
-rw-r--r--libavcodec/apedec.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c
index 772636afde..613c76df0b 100644
--- a/libavcodec/apedec.c
+++ b/libavcodec/apedec.c
@@ -1680,7 +1680,11 @@ const FFCodec ff_ape_decoder = {
.init = ape_decode_init,
.close = ape_decode_close,
FF_CODEC_DECODE_CB(ape_decode_frame),
- .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DELAY |
+ .p.capabilities =
+#if FF_API_SUBFRAMES
+ AV_CODEC_CAP_SUBFRAMES |
+#endif
+ AV_CODEC_CAP_DELAY |
AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
.flush = ape_flush,