[vlc-devel] [PATCH] Map AV_CODEC_ID_ASS to VLC_CODEC_SSA

zhanghuicuc at 163.com zhanghuicuc at 163.com
Thu Dec 27 04:08:03 CET 2018


From: Zhang Hui <zhanghui at formovie.cn>

so we can use libass with avformat for ass subtitles
---
 modules/codec/avcodec/fourcc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/codec/avcodec/fourcc.c b/modules/codec/avcodec/fourcc.c
index 40e98e0..e65b5d2 100644
--- a/modules/codec/avcodec/fourcc.c
+++ b/modules/codec/avcodec/fourcc.c
@@ -474,6 +474,9 @@ static const struct vlc_avcodec_fourcc spu_codecs[] =
     { VLC_CODEC_SUBT, AV_CODEC_ID_TEXT },
     { VLC_CODEC_XSUB, AV_CODEC_ID_XSUB },
     { VLC_CODEC_SSA, AV_CODEC_ID_SSA },
+#if LIBAVCODEC_VERSION_MICRO >= 100
+    { VLC_CODEC_SSA, AV_CODEC_ID_ASS },
+#endif
     /* AV_CODEC_ID_MOV_TEXT */
     { VLC_CODEC_BD_PG, AV_CODEC_ID_HDMV_PGS_SUBTITLE },
 #if LIBAVCODEC_VERSION_CHECK( 57, 999, 999, 71, 100 )
-- 
1.9.1




More information about the vlc-devel mailing list