aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2011-10-14 23:43:29 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-11-04 01:22:59 +0100
commitd32f509de1c6bbd2b441cf1ce9fda08504bfae6f (patch)
tree50fdf81d67c6c423efc94b177d6d83fc775b9c15
parent5f5f36b52e21d9aed347aef73aefe473e7d31409 (diff)
downloadffmpeg-d32f509de1c6bbd2b441cf1ce9fda08504bfae6f.tar.gz
vp8: prevent read from uninitialized memory in decode_mvs
Signed-off-by: Janne Grunau <janne-libav@jannau.net> (cherry picked from commit 0f0b5d643401d4d83322eeee0e57eb5a226ef9ab) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/vp8.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index daaee83f2d..3217605e58 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -492,6 +492,7 @@ void decode_mvs(VP8Context *s, VP8Macroblock *mb, int mb_x, int mb_y)
AV_ZERO32(&near_mv[0]);
AV_ZERO32(&near_mv[1]);
+ AV_ZERO32(&near_mv[2]);
/* Process MB on top, left and top-left */
#define MV_EDGE_CHECK(n)\