[FFmpeg-devel] [PATCH] avcodec/svq1: zero initialize entries array
James Almer
jamrial at gmail.com
Sun Apr 9 13:51:10 EEST 2017
Fixes valgrind warnings about "Use of uninitialised value of size 8"
Signed-off-by: James Almer <jamrial at gmail.com>
---
This probably just silences a bunch of false possitives.
libavcodec/svq1dec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c
index d3e60c3a4a..e5e43fc8e2 100644
--- a/libavcodec/svq1dec.c
+++ b/libavcodec/svq1dec.c
@@ -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;
--
2.12.2
More information about the ffmpeg-devel
mailing list