Browse Source

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
tags/v0.5
Ian Caulfield Panagiotis Issaris 18 years ago
parent
commit
e4f42564bb
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/dvdsub_parser.c

+ 2
- 0
libavcodec/dvdsub_parser.c View File

@@ -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);
}


Loading…
Cancel
Save