summaryrefslogtreecommitdiff
path: root/libavcodec/tests
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-01-04 02:46:29 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2019-01-14 17:16:55 +0100
commitc15972f0af7679b466dd4a10a54ab2f04f9372c8 (patch)
tree3de584e0053771619ad182bccaf9fc2217395d5a /libavcodec/tests
parent6e23736aefa83859fdb6faae4fd14c169f1a41ab (diff)
avcodec/tests/rangecoder: initialize array to avoid valgrind warning
Found-by: jamrial Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/tests')
-rw-r--r--libavcodec/tests/rangecoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tests/rangecoder.c b/libavcodec/tests/rangecoder.c
index b6edc1493f..d6cf9ec380 100644
--- a/libavcodec/tests/rangecoder.c
+++ b/libavcodec/tests/rangecoder.c
@@ -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, p, actual_length, version;
uint8_t state[10];