[vlc-devel] [PATCH 2/2] AVCodec Subtitle decoder : Add libavcodec's DVD sub decoder to the list of validated codecs.

Jai Menon jmenon86 at gmail.com
Thu Jun 24 13:15:08 CEST 2010


This allows for decoding HDDVD subtitles which the native decoder
cannot handle.
---
 modules/codec/avcodec/subtitle.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/codec/avcodec/subtitle.c b/modules/codec/avcodec/subtitle.c
index 26e521b..1a64e2c 100644
--- a/modules/codec/avcodec/subtitle.c
+++ b/modules/codec/avcodec/subtitle.c
@@ -70,6 +70,7 @@ int InitSubtitleDec(decoder_t *dec, AVCodecContext *context,
     switch (codec_id) {
     case CODEC_ID_HDMV_PGS_SUBTITLE:
     case CODEC_ID_XSUB:
+    case CODEC_ID_DVD_SUBTITLE:
         break;
     default:
         msg_Warn(dec, "refusing to decode non validated subtitle codec");
-- 
1.7.1




More information about the vlc-devel mailing list