diff mbox series

[FFmpeg-devel,5/5] avcodec/libaribb24: Enable decoding support for arib_superimpose

Message ID 20210612093032.64034-5-xqq@xqq.im
State Superseded
Headers show
Series [FFmpeg-devel,1/5] avcodec/codec: Add arib_superimpose subtitle codec | expand

Checks

Context Check Description
andriy/x86_make fail Make failed
andriy/PPC64_make warning Make failed

Commit Message

zheng qian June 12, 2021, 9:30 a.m. UTC
ARIB superimpose packet could also be decoded by libaribb24

Signed-off-by: zheng qian <xqq@xqq.im>
---
 libavcodec/allcodecs.c  |  1 +
 libavcodec/libaribb24.c | 14 ++++++++++++++
 2 files changed, 15 insertions(+)
diff mbox series

Patch

diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c
index 623db2a9fa..5d5b536e97 100644
--- a/libavcodec/allcodecs.c
+++ b/libavcodec/allcodecs.c
@@ -722,6 +722,7 @@  extern const AVCodec ff_qdmc_at_decoder;
 extern const AVCodec ff_qdm2_at_decoder;
 extern AVCodec ff_libaom_av1_encoder;
 extern const AVCodec ff_libaribb24_decoder;
+extern const AVCodec ff_libaribb24_superimpose_decoder;
 extern const AVCodec ff_libcelt_decoder;
 extern const AVCodec ff_libcodec2_encoder;
 extern const AVCodec ff_libcodec2_decoder;
diff --git a/libavcodec/libaribb24.c b/libavcodec/libaribb24.c
index 0766c0079d..afa43f8f50 100644
--- a/libavcodec/libaribb24.c
+++ b/libavcodec/libaribb24.c
@@ -393,3 +393,17 @@  const AVCodec ff_libaribb24_decoder = {
     .priv_class= &aribb24_class,
     .wrapper_name = "libaribb24",
 };
+
+const AVCodec ff_libaribb24_superimpose_decoder = {
+    .name      = "libaribb24_superimpose",
+    .long_name = NULL_IF_CONFIG_SMALL("libaribb24 ARIB STD-B24 superimpose decoder"),
+    .type      = AVMEDIA_TYPE_SUBTITLE,
+    .id        = AV_CODEC_ID_ARIB_SUPERIMPOSE,
+    .priv_data_size = sizeof(Libaribb24Context),
+    .init      = libaribb24_init,
+    .close     = libaribb24_close,
+    .decode    = libaribb24_decode,
+    .flush     = libaribb24_flush,
+    .priv_class= &aribb24_class,
+    .wrapper_name = "libaribb24_superimpose",
+};