History

Add a cast when converting from uint64_t to int

This silences warnings with MSVC.

Martin Storsjö committed 11 years ago

Commit b83b1921 parent 96384bd1 file · +2 −2Browse files

Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 1 file). Show all

Unified · Split

codec/decoder/core/src/decoder.cpp+2−2
@@ -993,8 +993,8 @@ void UpdateDecStatNoFreezingInfo (PWelsDecoderContext pCtx) { · 992 unmodified lines
993 ResetDecStatNums (pDecStat);993 ResetDecStatNums (pDecStat);
994 pDecStat->iAvgLumaQp = iTotalQp;994 pDecStat->iAvgLumaQp = iTotalQp;
995 } else995 } else
996 pDecStat->iAvgLumaQp = (uint64_t) (pDecStat->iAvgLumaQp * pDecStat->uiDecodedFrameCount + iTotalQp) /996 pDecStat->iAvgLumaQp = (int) ((uint64_t) (pDecStat->iAvgLumaQp * pDecStat->uiDecodedFrameCount + iTotalQp) /
997 (pDecStat->uiDecodedFrameCount + 1);997 (pDecStat->uiDecodedFrameCount + 1));
998 998
999 //update IDR number999 //update IDR number
1000 if (pCurDq->sLayerInfo.sNalHeaderExt.bIdrFlag) {1000 if (pCurDq->sLayerInfo.sNalHeaderExt.bIdrFlag) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t