This silences warnings with MSVC.
Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 1 file). Show all
Unified · Split
| @@ -993,8 +993,8 @@ void UpdateDecStatNoFreezingInfo (PWelsDecoderContext pCtx) { · 992 unmodified lines | ||
| 993 | 993 | ResetDecStatNums (pDecStat); |
| 994 | 994 | pDecStat->iAvgLumaQp = iTotalQp; |
| 995 | 995 | } else |
| 996 | − pDecStat->iAvgLumaQp = (uint64_t) (pDecStat->iAvgLumaQp * pDecStat->uiDecodedFrameCount + iTotalQp) / | |
| 997 | − (pDecStat->uiDecodedFrameCount + 1); | |
| 996 | + pDecStat->iAvgLumaQp = (int) ((uint64_t) (pDecStat->iAvgLumaQp * pDecStat->uiDecodedFrameCount + iTotalQp) / | |
| 997 | + (pDecStat->uiDecodedFrameCount + 1)); | |
| 998 | 998 | |
| 999 | 999 | //update IDR number |
| 1000 | 1000 | if (pCurDq->sLayerInfo.sNalHeaderExt.bIdrFlag) { |