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

zhanghuicuc at 163.com zhanghuicuc at 163.com
Tue Dec 25 07:11:58 CET 2018


From: Zhang Hui <zhanghui at formovie.cn>

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

diff --git a/modules/codec/avcodec/fourcc.c b/modules/codec/avcodec/fourcc.c
index 40e98e0..b6c1f3f 100644
--- a/modules/codec/avcodec/fourcc.c
+++ b/modules/codec/avcodec/fourcc.c
@@ -474,6 +474,7 @@ 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 },
+    { VLC_CODEC_SSA, AV_CODEC_ID_ASS },
     /* AV_CODEC_ID_MOV_TEXT */
     { VLC_CODEC_BD_PG, AV_CODEC_ID_HDMV_PGS_SUBTITLE },
 #if LIBAVCODEC_VERSION_CHECK( 57, 999, 999, 71, 100 )
@@ -493,7 +494,6 @@ static const struct vlc_avcodec_fourcc spu_codecs[] =
     /* ffmpeg only: AV_CODEC_ID_MPL2 */
     /* ffmpeg only: AV_CODEC_ID_VPLAYER */
     /* ffmpeg only: AV_CODEC_ID_PJS */
-    /* ffmpeg only: AV_CODEC_ID_ASS */
 };
 
 bool GetFfmpegCodec( enum es_format_category_e cat, vlc_fourcc_t i_fourcc,
-- 
1.9.1




More information about the vlc-devel mailing list