ffv1: fix decoder state_transition table
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 23 May 2012 10:04:10 +0000 (12:04 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 23 May 2012 10:04:10 +0000 (12:04 +0200)
This fixes a regression with ffv1.1 coder=1 decoding

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ffv1.c

index 32eab51..901e79e 100644 (file)
@@ -723,7 +723,7 @@ static int init_slice_state(FFV1Context *f, FFV1Context *fs){
         if (fs->ac>1){
             //FIXME only redo if state_transition changed
             for(j=1; j<256; j++){
-                fs->c.one_state [    j]= fs->state_transition[j];
+                fs->c.one_state [    j]= f->state_transition[j];
                 fs->c.zero_state[256-j]= 256-fs->c.one_state [j];
             }
         }