mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-29 10:52:20 +00: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
|
* 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user