]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dvdsub_parser.c
Move the AVCodecContext options definition to a dedicated file, reduce
[ffmpeg] / libavcodec / dvdsub_parser.c
index 5f1c1b62822648a2730f9c890266597cf2a42453..0893daca658714598f2a2d9003a0dbb7ea1109f0 100644 (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);
     }