avcodec/mvcdec: zero-initialize color array

Fixes MSAN use-of-uninitialized-value.

Signed-off-by: Marvin Scholz <epirat07@gmail.com>
(cherry picked from commit 3a5eb948e7)
This commit is contained in:
Marvin Scholz authored and ffmpeg-devel committed 2026-10-21 19:10:07 +00:00
1 parent ce9c7b5371
commit b0afceda28
1 file changed
+1 -1
+1 -1
View File
@@ -138,7 +138,7 @@ static int decode_mvc2(AVCodecContext *avctx, GetByteContext *gb,
int linesize, int vflip)
{
uint8_t *dst;
uint32_t color[128], v[8];
uint32_t color[128] = {0}, v[8];
int w, h, nb_colors, i, x, y, p0, p1, mask;
if (bytestream2_get_bytes_left(gb) < 6)