aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/misc4.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/misc4.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/misc4.c')
-rw-r--r--libavcodec/misc4.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/misc4.c b/libavcodec/misc4.c
index 1bf162e120..72ac944e54 100644
--- a/libavcodec/misc4.c
+++ b/libavcodec/misc4.c
@@ -179,7 +179,10 @@ const FFCodec ff_misc4_decoder = {
.priv_data_size = sizeof(MISC4Context),
.init = misc4_init,
FF_CODEC_DECODE_CB(misc4_decode),
- .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SUBFRAMES |
+ .p.capabilities = AV_CODEC_CAP_DR1 |
+#if FF_API_SUBFRAMES
+ AV_CODEC_CAP_SUBFRAMES |
+#endif
AV_CODEC_CAP_CHANNEL_CONF,
.p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16,
AV_SAMPLE_FMT_NONE },