aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-14 00:58:18 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-14 01:46:11 +0100
commit5f00b333a4c3cae7a16bfc94a463ee3b6d97fc21 (patch)
tree81947e2d1d255187c28570e4266b0a229836b4c4
parentcf95dee3de5930172900ef36e376c8a7f31988bc (diff)
downloadffmpeg-5f00b333a4c3cae7a16bfc94a463ee3b6d97fc21.tar.gz
avcodec/vc1dec: zero SpriteData struct
Fixes use of uninitialized data, as alternative alpha could be calculated conditionally Fixes part of msan_uninit-mem_7f51a8b0b3b0_1009_Arlington.wmv Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/vc1dec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index edddc483a2..daa62d6298 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -5459,6 +5459,8 @@ static int vc1_decode_sprites(VC1Context *v, GetBitContext* gb)
AVCodecContext *avctx = s->avctx;
SpriteData sd;
+ memset(&sd, 0, sizeof(sd));
+
vc1_parse_sprites(v, gb, &sd);
if (!s->current_picture.f.data[0]) {