diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-01-04 02:46:29 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-01-15 00:57:27 +0100 |
commit | 53319cbe97877fe92a2af1586c4dd5c36cb95843 (patch) | |
tree | f14309d16f648e5674a6e6401ce39ef31037c4d9 | |
parent | f4a9455e03a6712085ec1c56ccde015d728a7471 (diff) | |
download | ffmpeg-53319cbe97877fe92a2af1586c4dd5c36cb95843.tar.gz |
avcodec/tests/rangecoder: initialize array to avoid valgrind warning
Found-by: jamrial
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c15972f0af7679b466dd4a10a54ab2f04f9372c8)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/tests/rangecoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tests/rangecoder.c b/libavcodec/tests/rangecoder.c index 2da5c0ce33..3a8ba6759c 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; uint8_t state[10]; |