diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2007-08-05 12:11:16 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2007-08-05 12:11:16 +0000 |
commit | cbb79c0ea858c1114806a762c06a10c5e8b5561e (patch) | |
tree | ca68f74a800ea280f1e81f17b18c59383a57594c /libavformat/avidec.c | |
parent | 5968b39635742cd0d810fab325a12733104aecf8 (diff) | |
download | ffmpeg-streaming-cbb79c0ea858c1114806a762c06a10c5e8b5561e.zip ffmpeg-streaming-cbb79c0ea858c1114806a762c06a10c5e8b5561e.tar.gz |
Hack to support XSUB subtitles in AVI
Originally committed as revision 9936 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r-- | libavformat/avidec.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 53621c5..f428fab 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -412,6 +412,13 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap) 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); |