diff options
author | Ian Caulfield <ian.caulfield@gmx.at> | 2007-07-24 14:17:13 +0000 |
---|---|---|
committer | Panagiotis Issaris <takis.issaris@uhasselt.be> | 2007-07-24 14:17:13 +0000 |
commit | e4f42564bbde2bb5224cddfb410d3c7db58facc9 (patch) | |
tree | ea47dd5bd98a5101a4a732f84c0d5dd265940625 | |
parent | 4e16a060a0236f16d8397eeba503c1371b0c98fb (diff) | |
download | ffmpeg-e4f42564bbde2bb5224cddfb410d3c7db58facc9.tar.gz |
Update the dvdsub parser to be able to parse HD-DVD subtitle packets.
Patch by: Ian Caulfield, ian caulfield & gmx at
Originally committed as revision 9790 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/dvdsub_parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/dvdsub_parser.c b/libavcodec/dvdsub_parser.c index 5f1c1b6282..0893daca65 100644 --- a/libavcodec/dvdsub_parser.c +++ b/libavcodec/dvdsub_parser.c @@ -43,6 +43,8 @@ static int dvdsub_parse(AVCodecParserContext *s, if (buf_size < 2) return 0; pc->packet_len = AV_RB16(buf); + if (pc->packet_len == 0) /* HD-DVD subpicture packet */ + pc->packet_len = AV_RB32(buf+2); av_freep(&pc->packet); pc->packet = av_malloc(pc->packet_len); } |