aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/bonk.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/bonk.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/bonk.c')
-rw-r--r--libavcodec/bonk.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/bonk.c b/libavcodec/bonk.c
index 4a00270392..9a91b4842e 100644
--- a/libavcodec/bonk.c
+++ b/libavcodec/bonk.c
@@ -428,8 +428,10 @@ const FFCodec ff_bonk_decoder = {
FF_CODEC_DECODE_CB(bonk_decode),
.close = bonk_close,
.p.capabilities = AV_CODEC_CAP_DELAY |
- AV_CODEC_CAP_DR1 |
- AV_CODEC_CAP_SUBFRAMES,
+#if FF_API_SUBFRAMES
+ AV_CODEC_CAP_SUBFRAMES |
+#endif
+ AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_CLEANUP,
.p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P,
AV_SAMPLE_FMT_NONE },