shithub: openh264

Download patch

ref: c25a899942b00de6b2ecddcef6d6fe92b10838f5
parent: fcf345c20eed7664cce50d9fdd03b88ef093b4aa
author: huili2 <[email protected]>
date: Fri Apr 28 06:00:42 EDT 2017

bugfix of weight prediction

--- a/codec/decoder/core/src/rec_mb.cpp
+++ b/codec/decoder/core/src/rec_mb.cpp
@@ -294,8 +294,8 @@
 
 
   //UV
-  iBlkWidth = iBlkWidth >> 2;
-  iBlkHeight = iBlkHeight >> 2;
+  iBlkWidth = iBlkWidth >> 1;
+  iBlkHeight = iBlkHeight >> 1;
   iLog2denom = pCurDqLayer->pPredWeightTable->uiChromaLog2WeightDenom;
   iLineStride = pMCRefMem->iDstLineChroma;