1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00

fate/cabac: replace uninitialized bytes by random bytes

Fixes valgrind warning

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-01-23 20:30:02 +01:00
parent d863785379
commit 0be4377333

View File

@ -318,7 +318,9 @@ int main(void){
put_cabac(&c, state, r[i]&1); 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); ff_init_cabac_decoder(&c, b, SIZE);