mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avcodec/svq1: zero initialize entries array
Fixes valgrind warnings about "Use of uninitialised value of size 8" Reviewed-by: Kieran Kunhya <kierank@obe.tv> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
adf9f0416f
commit
aed84ee4d1
@ -160,7 +160,7 @@ static int svq1_decode_block_intra(GetBitContext *bitbuf, uint8_t *pixels,
|
||||
uint8_t *list[63];
|
||||
uint32_t *dst;
|
||||
const uint32_t *codebook;
|
||||
int entries[6];
|
||||
int entries[6] = { 0 };
|
||||
int i, j, m, n;
|
||||
int stages;
|
||||
unsigned mean;
|
||||
@ -227,7 +227,7 @@ static int svq1_decode_block_non_intra(GetBitContext *bitbuf, uint8_t *pixels,
|
||||
uint8_t *list[63];
|
||||
uint32_t *dst;
|
||||
const uint32_t *codebook;
|
||||
int entries[6];
|
||||
int entries[6] = { 0 };
|
||||
int i, j, m, n;
|
||||
int stages;
|
||||
unsigned mean;
|
||||
|
Loading…
Reference in New Issue
Block a user