From 039f9e08f04bc7919c7db4fe4be93a7ac3cc1f84 Mon Sep 17 00:00:00 2001 From: Yaowu Xu Date: Tue, 2 Aug 2016 11:01:39 -0700 Subject: [PATCH] change HBD pixel value from uint8_t to uint16_t This fixes a regression in 10/12 bit encoding results. Change-Id: I438877352a41aae0a864a8d9979afe4aa2061d81 --- vp9/encoder/vp9_firstpass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c index 0f05c95bb..e49893079 100644 --- a/vp9/encoder/vp9_firstpass.c +++ b/vp9/encoder/vp9_firstpass.c @@ -643,7 +643,7 @@ static int fp_highbd_estimate_point_noise(uint8_t *src_ptr, const int stride) { uint8_t *tmp_ptr; uint16_t *tmp_ptr16; uint8_t *kernal_ptr; - uint8_t dn_val; + uint16_t dn_val; uint16_t centre_val = *CONVERT_TO_SHORTPTR(src_ptr); kernal_ptr = fp_dn_kernal_3;