Index: source/libvpx/vp9/encoder/vp9_encodeframe.c |
=================================================================== |
--- source/libvpx/vp9/encoder/vp9_encodeframe.c (revision 285372) |
+++ source/libvpx/vp9/encoder/vp9_encodeframe.c (working copy) |
@@ -260,6 +260,8 @@ |
static void tree_to_node(void *data, BLOCK_SIZE bsize, variance_node *node) { |
int i; |
+ node->part_variances = NULL; |
+ vpx_memset(node->split, 0, sizeof(node->split)); |
switch (bsize) { |
case BLOCK_64X64: { |
v64x64 *vt = (v64x64 *) data; |
@@ -638,10 +640,8 @@ |
void vp9_setup_src_planes(MACROBLOCK *x, const YV12_BUFFER_CONFIG *src, |
int mi_row, int mi_col) { |
- uint8_t *const buffers[4] = {src->y_buffer, src->u_buffer, src->v_buffer, |
- src->alpha_buffer}; |
- const int strides[4] = {src->y_stride, src->uv_stride, src->uv_stride, |
- src->alpha_stride}; |
+ uint8_t *const buffers[3] = {src->y_buffer, src->u_buffer, src->v_buffer }; |
+ const int strides[3] = {src->y_stride, src->uv_stride, src->uv_stride }; |
int i; |
// Set current frame pointer. |
@@ -2362,9 +2362,9 @@ |
else if (cpi->rc.is_src_frame_alt_ref && cpi->refresh_golden_frame) |
return ALTREF_FRAME; |
else if (cpi->refresh_golden_frame || cpi->refresh_alt_ref_frame) |
+ return GOLDEN_FRAME; |
+ else |
return LAST_FRAME; |
- else |
- return GOLDEN_FRAME; |
} |
static TX_MODE select_tx_mode(const VP9_COMP *cpi) { |