aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cbs.c
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-03-11 17:27:15 +0000
committerMark Thompson <sw@jkqxz.net>2018-03-18 17:55:00 +0000
commit84bb8327f571c4924789413efafde47d96b8b72b (patch)
treecb4891e50a6d1047ca8c59811fb2201406f4836e /libavcodec/cbs.c
parent94d42cb4cc6e420c80abbf54148be1578f7c3244 (diff)
downloadffmpeg-84bb8327f571c4924789413efafde47d96b8b72b.tar.gz
cbs: Add a table of all supported codec IDs
Use it as the set of codec IDs supported by the trace_headers BSF.
Diffstat (limited to 'libavcodec/cbs.c')
-rw-r--r--libavcodec/cbs.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libavcodec/cbs.c b/libavcodec/cbs.c
index 62f60be437..897e0bb28e 100644
--- a/libavcodec/cbs.c
+++ b/libavcodec/cbs.c
@@ -40,6 +40,19 @@ static const CodedBitstreamType *cbs_type_table[] = {
#endif
};
+const enum AVCodecID ff_cbs_all_codec_ids[] = {
+#if CONFIG_CBS_H264
+ AV_CODEC_ID_H264,
+#endif
+#if CONFIG_CBS_H265
+ AV_CODEC_ID_H265,
+#endif
+#if CONFIG_CBS_MPEG2
+ AV_CODEC_ID_MPEG2VIDEO,
+#endif
+ AV_CODEC_ID_NONE
+};
+
int ff_cbs_init(CodedBitstreamContext **ctx_ptr,
enum AVCodecID codec_id, void *log_ctx)
{