Revision 704a2881 libavcodec/vp6.c

View differences:

libavcodec/vp6.c
50 50
    int res = 1;
51 51
    int separated_coeff = buf[0] & 1;
52 52

  
53
    s->frames[VP56_FRAME_CURRENT].key_frame = !(buf[0] & 0x80);
53
    s->framep[VP56_FRAME_CURRENT]->key_frame = !(buf[0] & 0x80);
54 54
    vp56_init_dequant(s, (buf[0] >> 1) & 0x3F);
55 55

  
56
    if (s->frames[VP56_FRAME_CURRENT].key_frame) {
56
    if (s->framep[VP56_FRAME_CURRENT]->key_frame) {
57 57
        sub_version = buf[1] >> 3;
58 58
        if (sub_version > 8)
59 59
            return 0;
......
205 205
            if (vp56_rac_get_prob(c, vp6_dccv_pct[pt][node])) {
206 206
                def_prob[node] = vp56_rac_gets_nn(c, 7);
207 207
                s->coeff_model_dccv[pt][node] = def_prob[node];
208
            } else if (s->frames[VP56_FRAME_CURRENT].key_frame) {
208
            } else if (s->framep[VP56_FRAME_CURRENT]->key_frame) {
209 209
                s->coeff_model_dccv[pt][node] = def_prob[node];
210 210
            }
211 211

  
......
228 228
                    if (vp56_rac_get_prob(c, vp6_ract_pct[ct][pt][cg][node])) {
229 229
                        def_prob[node] = vp56_rac_gets_nn(c, 7);
230 230
                        s->coeff_model_ract[pt][ct][cg][node] = def_prob[node];
231
                    } else if (s->frames[VP56_FRAME_CURRENT].key_frame) {
231
                    } else if (s->framep[VP56_FRAME_CURRENT]->key_frame) {
232 232
                        s->coeff_model_ract[pt][ct][cg][node] = def_prob[node];
233 233
                    }
234 234

  

Also available in: Unified diff