mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-12 02:04:58 +00:00
fix last coeff
Originally committed as revision 4254 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a2df5a50ae
commit
36661afe02
@ -833,7 +833,7 @@ static void init_frame(Vp3DecodeContext *s, GetBitContext *gb)
|
||||
for (i = 0; i < s->fragment_count; i++) {
|
||||
s->all_fragments[i].coeffs = zero_block;
|
||||
s->all_fragments[i].coeff_count = 0;
|
||||
s->all_fragments[i].last_coeff = 0;
|
||||
s->all_fragments[i].last_coeff = -1;
|
||||
s->all_fragments[i].motion_x = 0xbeef;
|
||||
s->all_fragments[i].motion_y = 0xbeef;
|
||||
}
|
||||
@ -2036,6 +2036,8 @@ static void reverse_dc_prediction(Vp3DecodeContext *s,
|
||||
|
||||
/* save the DC */
|
||||
last_dc[current_frame_type] = s->all_fragments[i].coeffs[0];
|
||||
if(s->all_fragments[i].coeffs[0] && s->all_fragments[i].last_coeff<0)
|
||||
s->all_fragments[i].last_coeff= 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user