Revision 704a2881 libavcodec/vp5.c

View differences:

libavcodec/vp5.c
41 41
    int rows, cols;
42 42

  
43 43
    vp56_init_range_decoder(&s->c, buf, buf_size);
44
    s->frames[VP56_FRAME_CURRENT].key_frame = !vp56_rac_get(c);
44
    s->framep[VP56_FRAME_CURRENT]->key_frame = !vp56_rac_get(c);
45 45
    vp56_rac_get(c);
46 46
    vp56_init_dequant(s, vp56_rac_gets(c, 6));
47
    if (s->frames[VP56_FRAME_CURRENT].key_frame)
47
    if (s->framep[VP56_FRAME_CURRENT]->key_frame)
48 48
    {
49 49
        vp56_rac_gets(c, 8);
50 50
        if(vp56_rac_gets(c, 5) > 5)
......
145 145
            if (vp56_rac_get_prob(c, vp5_dccv_pct[pt][node])) {
146 146
                def_prob[node] = vp56_rac_gets_nn(c, 7);
147 147
                s->coeff_model_dccv[pt][node] = def_prob[node];
148
            } else if (s->frames[VP56_FRAME_CURRENT].key_frame) {
148
            } else if (s->framep[VP56_FRAME_CURRENT]->key_frame) {
149 149
                s->coeff_model_dccv[pt][node] = def_prob[node];
150 150
            }
151 151

  
......
156 156
                    if (vp56_rac_get_prob(c, vp5_ract_pct[ct][pt][cg][node])) {
157 157
                        def_prob[node] = vp56_rac_gets_nn(c, 7);
158 158
                        s->coeff_model_ract[pt][ct][cg][node] = def_prob[node];
159
                    } else if (s->frames[VP56_FRAME_CURRENT].key_frame) {
159
                    } else if (s->framep[VP56_FRAME_CURRENT]->key_frame) {
160 160
                        s->coeff_model_ract[pt][ct][cg][node] = def_prob[node];
161 161
                    }
162 162

  

Also available in: Unified diff