projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5968b39
)
Hack to support XSUB subtitles in AVI
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 5 Aug 2007 12:11:16 +0000
(12:11 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 5 Aug 2007 12:11:16 +0000
(12:11 +0000)
Originally committed as revision 9936 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/avidec.c
patch
|
blob
|
history
diff --git
a/libavformat/avidec.c
b/libavformat/avidec.c
index 53621c50181df08c4736775c52a512b4db0712a5..f428fabad298fdf503066ff116ddb49f578807fc 100644
(file)
--- 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);