aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-29 04:30:53 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-29 04:30:53 +0200
commitede411dd03950b91c6346f2a3ae0e7546555f42f (patch)
tree61831b2843f5090d539e40b7f8317081afbea96b /libavcodec
parent7c710764705ad46981592467a0d36588371d3ccc (diff)
downloadffmpeg-ede411dd03950b91c6346f2a3ae0e7546555f42f.tar.gz
avcodec/vc1_parser: fix use of uinitialized memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vc1_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vc1_parser.c b/libavcodec/vc1_parser.c
index 4ed14bccbe..0021febaf5 100644
--- a/libavcodec/vc1_parser.c
+++ b/libavcodec/vc1_parser.c
@@ -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;