Mercurial > libavcodec.hg
comparison vp3.c @ 2690:9cd85de24bcb libavcodec
fix last coeff
author | michael |
---|---|
date | Tue, 17 May 2005 08:46:40 +0000 |
parents | ed0ab6f82167 |
children | fb8f26fc57eb |
comparison
equal
deleted
inserted
replaced
2689:ed0ab6f82167 | 2690:9cd85de24bcb |
---|---|
831 /* zero out all of the fragment information */ | 831 /* zero out all of the fragment information */ |
832 s->coded_fragment_list_index = 0; | 832 s->coded_fragment_list_index = 0; |
833 for (i = 0; i < s->fragment_count; i++) { | 833 for (i = 0; i < s->fragment_count; i++) { |
834 s->all_fragments[i].coeffs = zero_block; | 834 s->all_fragments[i].coeffs = zero_block; |
835 s->all_fragments[i].coeff_count = 0; | 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 s->all_fragments[i].motion_x = 0xbeef; | 837 s->all_fragments[i].motion_x = 0xbeef; |
838 s->all_fragments[i].motion_y = 0xbeef; | 838 s->all_fragments[i].motion_y = 0xbeef; |
839 } | 839 } |
840 } | 840 } |
841 | 841 |
2034 s->all_fragments[i].coeffs[0]); | 2034 s->all_fragments[i].coeffs[0]); |
2035 } | 2035 } |
2036 | 2036 |
2037 /* save the DC */ | 2037 /* save the DC */ |
2038 last_dc[current_frame_type] = s->all_fragments[i].coeffs[0]; | 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 } |
2042 } | 2044 } |
2043 | 2045 |