Originally committed as revision 9790 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -43,6 +43,8 @@ static int dvdsub_parse(AVCodecParserContext *s, |
| 43 | 43 |
if (buf_size < 2) |
| 44 | 44 |
return 0; |
| 45 | 45 |
pc->packet_len = AV_RB16(buf); |
| 46 |
+ if (pc->packet_len == 0) /* HD-DVD subpicture packet */ |
|
| 47 |
+ pc->packet_len = AV_RB32(buf+2); |
|
| 46 | 48 |
av_freep(&pc->packet); |
| 47 | 49 |
pc->packet = av_malloc(pc->packet_len); |
| 48 | 50 |
} |