ARIB superimpose packet could also be decoded by libaribb24

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

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",
+};
-- 
2.29.2

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to