]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/cbs.c
cbs: Add a table of all supported codec IDs
[ffmpeg] / libavcodec / cbs.c
index 62f60be437bcd299c71d439e2edcc7735cbc198e..897e0bb28e34c4108371e01462b8b374195216b4 100644 (file)
@@ -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)
 {