Commit 28445293 authored by takis's avatar takis

Update the dvdsub parser to be able to parse HD-DVD subtitle packets.

Patch by: Ian Caulfield, ian caulfield & gmx at


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9790 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 273e01c7
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment