Browse Source

cabac test: Change input to test, so a wider range of states is tested.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Michael Niedermayer 13 years ago
parent
commit
1eb805ed70
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/cabac.c

+ 2
- 1
libavcodec/cabac.c View File

@@ -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++){


Loading…
Cancel
Save