Commit ede411dd authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/vc1_parser: fix use of uinitialized memory

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7c710764
...@@ -238,7 +238,7 @@ static int vc1_parse(AVCodecParserContext *s, ...@@ -238,7 +238,7 @@ static int vc1_parse(AVCodecParserContext *s,
* the start code we've already seen, or cause extra bytes to be * the start code we've already seen, or cause extra bytes to be
* inserted at the start of the unescaped buffer. */ * inserted at the start of the unescaped buffer. */
vpc->bytes_to_skip = 4; vpc->bytes_to_skip = 4;
if (next < 0) if (next < 0 && next != END_NOT_FOUND)
vpc->bytes_to_skip += next; vpc->bytes_to_skip += next;
*poutbuf = buf; *poutbuf = buf;
......
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