shithub: libvpx

Download patch

ref: b2d690187e0386546ba482a877770e67761f2f80
parent: 10b4753179ee2a0e152ebd48131f294594983db7
parent: d34b49d7b9d6d32d5e291e9c47687e744d893017
author: Yaowu Xu <yaowu@google.com>
date: Tue Jun 28 12:55:44 EDT 2016

Merge "psnr.c: use int64_t for sum of differences"

--- a/vpx_dsp/psnr.c
+++ b/vpx_dsp/psnr.c
@@ -51,7 +51,7 @@
 static void encoder_highbd_variance64(const uint8_t *a8, int  a_stride,
   const uint8_t *b8, int  b_stride,
   int w, int h, uint64_t *sse,
-  uint64_t *sum) {
+  int64_t *sum) {
   int i, j;
 
   uint16_t *a = CONVERT_TO_SHORTPTR(a8);
@@ -75,7 +75,7 @@
   int w, int h,
   unsigned int *sse, int *sum) {
   uint64_t sse_long = 0;
-  uint64_t sum_long = 0;
+  int64_t sum_long = 0;
   encoder_highbd_variance64(a8, a_stride, b8, b_stride, w, h,
     &sse_long, &sum_long);
   *sse = (unsigned int)sse_long;