Added resizing & initialization of last frame segment map
When the frame size changes the last frame segment map must be resized to match and initialized to 0. Change-Id: Idc10de109f55dbe9af3a6caae355a2974712243d
This commit is contained in:
@@ -989,11 +989,6 @@ int vp9_decode_frame(VP9D_COMP *pbi, const uint8_t **p_data_end) {
|
||||
|
||||
new_fb->corrupted |= read_compressed_header(pbi, data, first_partition_size);
|
||||
|
||||
// Create the segmentation map structure and set to 0
|
||||
if (!pc->last_frame_seg_map)
|
||||
CHECK_MEM_ERROR(pc, pc->last_frame_seg_map,
|
||||
vpx_calloc((pc->mi_rows * pc->mi_cols), 1));
|
||||
|
||||
setup_block_dptrs(xd, pc->subsampling_x, pc->subsampling_y);
|
||||
|
||||
// clear out the coeff buffer
|
||||
|
||||
Reference in New Issue
Block a user