diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-09-10 19:22:39 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-10 20:09:48 +0200 |
commit | 1eb805ed70a0aac35523c7a308145b6b8d05441e (patch) | |
tree | e44a1daf21f88824cb87b63616a0325f19286f42 /libavcodec | |
parent | 830d7d5c4fbf81265ca5260d59fe8467ac97b2e6 (diff) | |
download | ffmpeg-1eb805ed70a0aac35523c7a308145b6b8d05441e.tar.gz |
cabac test: Change input to test, so a wider range of states is tested.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/cabac.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c index 50c2ea6914..e03043f91f 100644 --- a/libavcodec/cabac.c +++ b/libavcodec/cabac.c @@ -317,7 +317,8 @@ int main(void){ ff_init_cabac_states(&c); for(i=0; i<SIZE; i++){ - r[i] = av_lfg_get(&prng) % 7; + if(2*i<SIZE) r[i] = av_lfg_get(&prng) % 7; + else r[i] = (i>>8)&1; } for(i=0; i<SIZE; i++){ |