提交 36661afe 编写于 作者: M Michael Niedermayer

fix last coeff

Originally committed as revision 4254 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 a2df5a50
......@@ -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;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册