aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald S. Bultje2011-10-14 23:43:29 +0200
committerJanne Grunau2011-10-15 00:13:21 +0200
commit0f0b5d643401d4d83322eeee0e57eb5a226ef9ab (patch)
treea108a0eb11ceef7cf251ae4908e902e5b17d62e1
parent56535793810584f5b3ae59e62cea66fe22d0307d (diff)
vp8: prevent read from uninitialized memory in decode_mvs
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
-rw-r--r--libavcodec/vp8.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index 691324eeb0..7442b99252 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)\