Commit e15f1286 authored by Michael Niedermayer's avatar Michael Niedermayer

ffv1: fix decoder state_transition table

This fixes a regression with ffv1.1 coder=1 decoding
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 60c950ac
...@@ -723,7 +723,7 @@ static int init_slice_state(FFV1Context *f, FFV1Context *fs){ ...@@ -723,7 +723,7 @@ static int init_slice_state(FFV1Context *f, FFV1Context *fs){
if (fs->ac>1){ if (fs->ac>1){
//FIXME only redo if state_transition changed //FIXME only redo if state_transition changed
for(j=1; j<256; j++){ 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]; fs->c.zero_state[256-j]= 256-fs->c.one_state [j];
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment