avcodec/tests/rangecoder: initialize array to avoid valgrind warning
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 4 Jan 2019 01:46:29 +0000 (02:46 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 21 Mar 2019 09:42:51 +0000 (10:42 +0100)
Found-by: jamrial
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c15972f0af7679b466dd4a10a54ab2f04f9372c8)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/tests/rangecoder.c

index 2da5c0c..3a8ba67 100644 (file)
@@ -29,7 +29,7 @@
 int main(void)
 {
     RangeCoder c;
-    uint8_t b[9 * SIZE];
+    uint8_t b[9 * SIZE] = {0};
     uint8_t r[9 * SIZE];
     int i;
     uint8_t state[10];