ref: 0d426b826d55333714fad886885e3c64927b0eee
parent: 305a2421be82a643b6a8dfa73c179b9d6a5e73f5
parent: cef85118b54273d951479565f1e63effd6b8ae9c
author: ruil2 <[email protected]>
date: Tue Nov 25 12:13:54 EST 2014
Merge pull request #1551 from sijchen/after_review2 add parentness
--- a/codec/encoder/plus/src/welsEncoderExt.cpp
+++ b/codec/encoder/plus/src/welsEncoderExt.cpp
@@ -640,7 +640,7 @@
if (m_pEncContext->iStatisticsLogInterval > 0) {
int64_t iTimeDiff = kiCurrentFrameTs - m_pEncContext->iLastStatisticsLogTs;
- if (iTimeDiff > m_pEncContext->iStatisticsLogInterval || 0 == pStatistics->uiInputFrameCount % 300) {
+ if ((iTimeDiff > m_pEncContext->iStatisticsLogInterval) || (0 == pStatistics->uiInputFrameCount % 300)) {
if (iTimeDiff) {
pStatistics->fLatestFrameRate = (pStatistics->uiInputFrameCount - m_pEncContext->iLastStatisticsFrameCount) * 1000 /
iTimeDiff;