From 719dadf3ef144cf1522782aefeee1bc068162932 Mon Sep 17 00:00:00 2001 From: Johann Date: Wed, 8 Jan 2014 17:42:04 -0800 Subject: [PATCH] Use the correct member for initialization On Windows this fails with: error C2440: 'initializing': cannot convert from int_mv to uint32_t Change-Id: I51630efd0e83a0ce620c91aa7859dd6fc1572e99 --- vp9/encoder/vp9_rdopt.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/vp9/encoder/vp9_rdopt.c b/vp9/encoder/vp9_rdopt.c index 97dc1e0ff..5ca34795d 100644 --- a/vp9/encoder/vp9_rdopt.c +++ b/vp9/encoder/vp9_rdopt.c @@ -2124,10 +2124,10 @@ static void mv_pred(VP9_COMP *cpi, MACROBLOCK *x, cpi->common.show_frame && block_size < cpi->sf.max_partition_size); - int_mv pred_mv[3] = { - mbmi->ref_mvs[ref_frame][0], mbmi->ref_mvs[ref_frame][1], - x->pred_mv[ref_frame] - }; + int_mv pred_mv[3]; + pred_mv[0] = mbmi->ref_mvs[ref_frame][0]; + pred_mv[1] = mbmi->ref_mvs[ref_frame][1]; + pred_mv[2] = x->pred_mv[ref_frame]; // Get the sad for each candidate reference mv for (i = 0; i < num_mv_refs; i++) { @@ -2355,9 +2355,10 @@ static void single_motion_search(VP9_COMP *cpi, MACROBLOCK *x, YV12_BUFFER_CONFIG *scaled_ref_frame = get_scaled_ref_frame(cpi, ref); - int_mv pred_mv[3] = { - mbmi->ref_mvs[ref][0], mbmi->ref_mvs[ref][1], x->pred_mv[ref] - }; + int_mv pred_mv[3]; + pred_mv[0] = mbmi->ref_mvs[ref][0]; + pred_mv[1] = mbmi->ref_mvs[ref][1]; + pred_mv[2] = x->pred_mv[ref]; if (scaled_ref_frame) { int i;