Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Unified Diff: source/libvpx/vp9/encoder/vp9_rdopt.c

Issue 12077018: libvpx: Pull from upstream (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_lookahead.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/libvpx/vp9/encoder/vp9_rdopt.c
===================================================================
--- source/libvpx/vp9/encoder/vp9_rdopt.c (revision 179051)
+++ source/libvpx/vp9/encoder/vp9_rdopt.c (working copy)
@@ -847,7 +847,7 @@
error += this_diff * this_diff;
}
- return error > INT_MAX ? INT_MAX : error;
+ return error > INT_MAX ? INT_MAX : (int)error;
}
#define DEBUG_ERROR 0
@@ -3123,9 +3123,9 @@
ctx->best_ref_mv.as_int = ref_mv->as_int;
ctx->second_best_ref_mv.as_int = second_ref_mv->as_int;
- ctx->single_pred_diff = comp_pred_diff[SINGLE_PREDICTION_ONLY];
- ctx->comp_pred_diff = comp_pred_diff[COMP_PREDICTION_ONLY];
- ctx->hybrid_pred_diff = comp_pred_diff[HYBRID_PREDICTION];
+ ctx->single_pred_diff = (int)comp_pred_diff[SINGLE_PREDICTION_ONLY];
+ ctx->comp_pred_diff = (int)comp_pred_diff[COMP_PREDICTION_ONLY];
+ ctx->hybrid_pred_diff = (int)comp_pred_diff[HYBRID_PREDICTION];
memcpy(ctx->txfm_rd_diff, txfm_size_diff, sizeof(ctx->txfm_rd_diff));
}
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_lookahead.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698