diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-23 20:30:02 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-23 20:53:29 +0100 |
commit | 0be4377333d8a9104eadd8b297605a6e95b22047 (patch) | |
tree | 8094aa4e88d032780aea09f053d1de0a48cc5629 /libavcodec/cabac.c | |
parent | d8637853795eebc6a9e34d086e0f9b13b5c8ff90 (diff) | |
download | ffmpeg-0be4377333d8a9104eadd8b297605a6e95b22047.tar.gz |
fate/cabac: replace uninitialized bytes by random bytes
Fixes valgrind warning
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/cabac.c')
-rw-r--r-- | libavcodec/cabac.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c index f2c239da89..a9fafbdd33 100644 --- a/libavcodec/cabac.c +++ b/libavcodec/cabac.c @@ -318,7 +318,9 @@ int main(void){ put_cabac(&c, state, r[i]&1); } - put_cabac_terminate(&c, 1); + i= put_cabac_terminate(&c, 1); + b[i++] = av_lfg_get(&prng); + b[i ] = av_lfg_get(&prng); ff_init_cabac_decoder(&c, b, SIZE); |