Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 2 files). Show all
Unified · Split
| @@ -373,8 +373,6 @@ long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void* pOption) { · 372 unmodified lines | |||
| 373 | 373 | ||
| 374 | pDecoderStatistics->fAverageFrameSpeedInMs = (float) (m_pDecContext->dDecTime) / | 374 | pDecoderStatistics->fAverageFrameSpeedInMs = (float) (m_pDecContext->dDecTime) / |
| 375 | (m_pDecContext->sDecoderStatistics.uiDecodedFrameCount); | 375 | (m_pDecContext->sDecoderStatistics.uiDecodedFrameCount); |
| 376 | ResetDecStatNums (&m_pDecContext->sDecoderStatistics); | ||
| 377 | m_pDecContext->dDecTime = 0; | ||
| 378 | 376 | ||
| 379 | return cmResultSuccess; | 377 | return cmResultSuccess; |
| 380 | } | 378 | } |
| @@ -497,8 +495,8 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 116 unmodified lines | |||
| 497 | 495 | ||
| 498 | m_pDecContext->sDecoderStatistics.uiDecodedFrameCount++; | 496 | m_pDecContext->sDecoderStatistics.uiDecodedFrameCount++; |
| 499 | if (m_pDecContext->sDecoderStatistics.uiDecodedFrameCount == 0) { //exceed max value of uint32_t | 497 | if (m_pDecContext->sDecoderStatistics.uiDecodedFrameCount == 0) { //exceed max value of uint32_t |
| 500 | ResetDecStatNums (&m_pDecContext->sDecoderStatistics); | 498 | ResetDecStatNums (&m_pDecContext->sDecoderStatistics); |
| 501 | m_pDecContext->sDecoderStatistics.uiDecodedFrameCount++; | 499 | m_pDecContext->sDecoderStatistics.uiDecodedFrameCount++; |
| 502 | } | 500 | } |
| 503 | 501 | ||
| 504 | if ((m_pDecContext->sDecoderStatistics.uiWidth != (unsigned int) pDstInfo->UsrData.sSystemBuffer.iWidth) | 502 | if ((m_pDecContext->sDecoderStatistics.uiWidth != (unsigned int) pDstInfo->UsrData.sSystemBuffer.iWidth) |