Skip to content

Commit 2a98890

Browse files
committed
Fixed MistProcAV division by zero error
1 parent 2f57dcd commit 2a98890

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/process/process_av.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1808,7 +1808,7 @@ namespace Mist{
18081808
pData["ainfo"]["sinkSleepTime"] = totalSinkSleep / (uint64_t)inputFrameCount / 1000;
18091809
pData["ainfo"]["sourceSleepTime"] = totalSourceSleep / (uint64_t)inputFrameCount / 1000;
18101810
}
1811-
if ((uint64_t)outputFrameCount){
1811+
if ((uint64_t)outputFrameCount > encPrevCount){
18121812
pData["ainfo"]["encodeTime"] = (totalEncode - encPrevTime) / (((uint64_t)outputFrameCount)-encPrevCount) / 1000;
18131813
encPrevTime = totalEncode;
18141814
encPrevCount = (uint64_t)outputFrameCount;

0 commit comments

Comments
 (0)