Fix subpixel_predict initialization
xd->subpixel_predict16x16 is called in first pass, but isn't initialized in first pass, which causes segfault. This patch fixed that problem. Change-Id: Ibd2cad4e2d32ea589fc3e0876d60d3079ae836e7
This commit is contained in:
parent
e2c5e78ad9
commit
b293698561
@ -545,6 +545,21 @@ void vp8_first_pass(VP8_COMP *cpi)
|
||||
|
||||
xd->mode_info_context = cm->mi;
|
||||
|
||||
if(!cm->use_bilinear_mc_filter)
|
||||
{
|
||||
xd->subpixel_predict = vp8_sixtap_predict4x4;
|
||||
xd->subpixel_predict8x4 = vp8_sixtap_predict8x4;
|
||||
xd->subpixel_predict8x8 = vp8_sixtap_predict8x8;
|
||||
xd->subpixel_predict16x16 = vp8_sixtap_predict16x16;
|
||||
}
|
||||
else
|
||||
{
|
||||
xd->subpixel_predict = vp8_bilinear_predict4x4;
|
||||
xd->subpixel_predict8x4 = vp8_bilinear_predict8x4;
|
||||
xd->subpixel_predict8x8 = vp8_bilinear_predict8x8;
|
||||
xd->subpixel_predict16x16 = vp8_bilinear_predict16x16;
|
||||
}
|
||||
|
||||
vp8_build_block_offsets(x);
|
||||
|
||||
vp8_setup_block_dptrs(&x->e_mbd);
|
||||
|
Loading…
x
Reference in New Issue
Block a user