[FFmpeg-cvslog] r9936 - trunk/libavformat/avidec.c

reimar subversion
Sun Aug 5 14:11:16 CEST 2007


Author: reimar
Date: Sun Aug  5 14:11:16 2007
New Revision: 9936

Log:
Hack to support XSUB subtitles in AVI


Modified:
   trunk/libavformat/avidec.c

Modified: trunk/libavformat/avidec.c
==============================================================================
--- trunk/libavformat/avidec.c	(original)
+++ trunk/libavformat/avidec.c	Sun Aug  5 14:11:16 2007
@@ -412,6 +412,13 @@ static int avi_read_header(AVFormatConte
                     get_le32(pb); /* ClrUsed */
                     get_le32(pb); /* ClrImportant */
 
+                    if (tag1 == MKTAG('D', 'X', 'S', 'B')) {
+                        st->codec->codec_type = CODEC_TYPE_SUBTITLE;
+                        st->codec->codec_tag = tag1;
+                        st->codec->codec_id = CODEC_ID_XSUB;
+                        break;
+                    }
+
                     if(size > 10*4 && size<(1<<30)){
                         st->codec->extradata_size= size - 10*4;
                         st->codec->extradata= av_malloc(st->codec->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);




More information about the ffmpeg-cvslog mailing list