fix parseonly length overflow
Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 8 files). Show all
Unified · Split
| @@ -726,7 +726,7 @@ DECODING_STATE CWelsDecoder::DecodeParser (const unsigned char* kpSrc, · 725 unmodified lines | ||
| 726 | 726 | m_pDecContext->pParam->eEcActiveIdc = ERROR_CON_DISABLE; //add protection to disable EC here. |
| 727 | 727 | if (!m_pDecContext->bFramePending) { //frame complete |
| 728 | 728 | m_pDecContext->pParserBsInfo->iNalNum = 0; |
| 729 | − memset (m_pDecContext->pParserBsInfo->iNalLenInByte, 0, MAX_NAL_UNITS_IN_LAYER); | |
| 729 | + memset (m_pDecContext->pParserBsInfo->pNalLenInByte, 0, MAX_NAL_UNITS_IN_LAYER); | |
| 730 | 730 | } |
| 731 | 731 | pDstInfo->iNalNum = 0; |
| 732 | 732 | pDstInfo->iSpsWidthInPixel = pDstInfo->iSpsHeightInPixel = 0; |