Revision 36661afe libavcodec/vp3.c

View differences:

libavcodec/vp3.c
833 833
    for (i = 0; i < s->fragment_count; i++) {
834 834
        s->all_fragments[i].coeffs = zero_block;
835 835
        s->all_fragments[i].coeff_count = 0;
836
        s->all_fragments[i].last_coeff = 0;
836
        s->all_fragments[i].last_coeff = -1;
837 837
s->all_fragments[i].motion_x = 0xbeef;
838 838
s->all_fragments[i].motion_y = 0xbeef;
839 839
    }
......
2036 2036

  
2037 2037
                /* save the DC */
2038 2038
                last_dc[current_frame_type] = s->all_fragments[i].coeffs[0];
2039
                if(s->all_fragments[i].coeffs[0] && s->all_fragments[i].last_coeff<0)
2040
                    s->all_fragments[i].last_coeff= 0;
2039 2041
            }
2040 2042
        }
2041 2043
    }

Also available in: Unified diff