[FFmpeg-cvslog] r9790 - trunk/libavcodec/dvdsub_parser.c
takis
subversion
Tue Jul 24 16:17:13 CEST 2007
Author: takis
Date: Tue Jul 24 16:17:13 2007
New Revision: 9790
Log:
Update the dvdsub parser to be able to parse HD-DVD subtitle packets.
Patch by: Ian Caulfield, ian caulfield & gmx at
Modified:
trunk/libavcodec/dvdsub_parser.c
Modified: trunk/libavcodec/dvdsub_parser.c
==============================================================================
--- trunk/libavcodec/dvdsub_parser.c (original)
+++ trunk/libavcodec/dvdsub_parser.c Tue Jul 24 16:17:13 2007
@@ -43,6 +43,8 @@ static int dvdsub_parse(AVCodecParserCon
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);
}
More information about the ffmpeg-cvslog
mailing list