Browse Source

avcodec/vc1_parser: fix use of uinitialized memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
ede411dd03
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/vc1_parser.c

+ 1
- 1
libavcodec/vc1_parser.c View File

@@ -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…
Cancel
Save