ref: b83b19254db201f9153d89d989b2d9f8b00e5b5e
parent: 96384bd5780bfd5964f3cd4f71f235f51310e169
author: Martin Storsjö <martin@martin.st>
date: Fri Jan 16 06:35:34 EST 2015
Add a cast when converting from uint64_t to int This silences warnings with MSVC.
--- a/codec/decoder/core/src/decoder.cpp
+++ b/codec/decoder/core/src/decoder.cpp
@@ -993,8 +993,8 @@
ResetDecStatNums (pDecStat);
pDecStat->iAvgLumaQp = iTotalQp;
} else
- pDecStat->iAvgLumaQp = (uint64_t) (pDecStat->iAvgLumaQp * pDecStat->uiDecodedFrameCount + iTotalQp) /
- (pDecStat->uiDecodedFrameCount + 1);
+ pDecStat->iAvgLumaQp = (int) ((uint64_t) (pDecStat->iAvgLumaQp * pDecStat->uiDecodedFrameCount + iTotalQp) /
+ (pDecStat->uiDecodedFrameCount + 1));
//update IDR number
if (pCurDq->sLayerInfo.sNalHeaderExt.bIdrFlag) {