This fixes warnings with gcc.
Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -463,8 +463,8 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 462 unmodified lines | ||
| 463 | 463 | m_pDecContext->sDecoderStatistics.uiEcFrameNum) + 100; |
| 464 | 464 | |
| 465 | 465 | // |
| 466 | − if ((m_pDecContext->sDecoderStatistics.uiWidth != pDstInfo->UsrData.sSystemBuffer.iWidth) | |
| 467 | − || (m_pDecContext->sDecoderStatistics.uiHeight != pDstInfo->UsrData.sSystemBuffer.iHeight)) { | |
| 466 | + if ((m_pDecContext->sDecoderStatistics.uiWidth != (unsigned int) pDstInfo->UsrData.sSystemBuffer.iWidth) | |
| 467 | + || (m_pDecContext->sDecoderStatistics.uiHeight != (unsigned int) pDstInfo->UsrData.sSystemBuffer.iHeight)) { | |
| 468 | 468 | m_pDecContext->sDecoderStatistics.uiResolutionChangeTimes++; |
| 469 | 469 | m_pDecContext->sDecoderStatistics.uiWidth = pDstInfo->UsrData.sSystemBuffer.iWidth; |
| 470 | 470 | m_pDecContext->sDecoderStatistics.uiHeight = pDstInfo->UsrData.sSystemBuffer.iHeight; |
| @@ -483,8 +483,8 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 12 unmodified lines | ||
| 483 | 483 | |
| 484 | 484 | if (pDstInfo->iBufferStatus == 1) { |
| 485 | 485 | |
| 486 | − if ((m_pDecContext->sDecoderStatistics.uiWidth != pDstInfo->UsrData.sSystemBuffer.iWidth) | |
| 487 | − || (m_pDecContext->sDecoderStatistics.uiHeight != pDstInfo->UsrData.sSystemBuffer.iHeight)) { | |
| 486 | + if ((m_pDecContext->sDecoderStatistics.uiWidth != (unsigned int) pDstInfo->UsrData.sSystemBuffer.iWidth) | |
| 487 | + || (m_pDecContext->sDecoderStatistics.uiHeight != (unsigned int) pDstInfo->UsrData.sSystemBuffer.iHeight)) { | |
| 488 | 488 | m_pDecContext->sDecoderStatistics.uiResolutionChangeTimes++; |
| 489 | 489 | m_pDecContext->sDecoderStatistics.uiWidth = pDstInfo->UsrData.sSystemBuffer.iWidth; |
| 490 | 490 | m_pDecContext->sDecoderStatistics.uiHeight = pDstInfo->UsrData.sSystemBuffer.iHeight; |