Commit 92834609 authored by Wolfram Gloger's avatar Wolfram Gloger Committed by Michael Niedermayer

mpegvideo_parser: fix buffer access beyond end

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 58df8bef
......@@ -56,6 +56,7 @@ static void mpegvideo_extract_headers(AVCodecParserContext *s,
case PICTURE_START_CODE:
if (bytes_left >= 2) {
s->pict_type = (buf[1] >> 3) & 7;
if (bytes_left >= 4)
vbv_delay = ((buf[1] & 0x07) << 13) | (buf[2] << 5) | (buf[3] >> 3);
}
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment