[FFmpeg-devel] [Ffmpeg-devel] [PATCH] HD DVD subtitle decoding

Ian Caulfield ian.caulfield
Tue Jul 24 15:13:30 CEST 2007


On 24/07/07, Panagiotis Issaris <takis.issaris at uhasselt.be> wrote:
> Applied.

Oops, looks like I forgot this hunk in my earlier mail. This updates
the dvdsub parser to be able to parse HD-DVD subtitle packets.

Ian

Index: libavcodec/dvdsub_parser.c
===================================================================
--- libavcodec/dvdsub_parser.c  (revision 9789)
+++ libavcodec/dvdsub_parser.c  (working copy)
@@ -43,6 +43,8 @@
         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-devel mailing list