mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/vc1_parser: fix use of uinitialized memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7c71076470
commit
ede411dd03
@ -238,7 +238,7 @@ static int vc1_parse(AVCodecParserContext *s,
|
||||
* the start code we've already seen, or cause extra bytes to be
|
||||
* inserted at the start of the unescaped buffer. */
|
||||
vpc->bytes_to_skip = 4;
|
||||
if (next < 0)
|
||||
if (next < 0 && next != END_NOT_FOUND)
|
||||
vpc->bytes_to_skip += next;
|
||||
|
||||
*poutbuf = buf;
|
||||
|
Loading…
Reference in New Issue
Block a user