aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-01-23 20:30:02 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-01-23 20:53:29 +0100
commit0be4377333d8a9104eadd8b297605a6e95b22047 (patch)
tree8094aa4e88d032780aea09f053d1de0a48cc5629 /libavcodec
parentd8637853795eebc6a9e34d086e0f9b13b5c8ff90 (diff)
downloadffmpeg-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')
-rw-r--r--libavcodec/cabac.c4
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);