|
|
@@ -43,6 +43,8 @@ static int dvdsub_parse(AVCodecParserContext *s, |
|
|
if (buf_size < 2) |
|
|
if (buf_size < 2) |
|
|
return 0; |
|
|
return 0; |
|
|
pc->packet_len = AV_RB16(buf); |
|
|
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); |
|
|
av_freep(&pc->packet); |
|
|
pc->packet = av_malloc(pc->packet_len); |
|
|
pc->packet = av_malloc(pc->packet_len); |
|
|
} |
|
|
} |
|
|
|