Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 3 files). Show all
Unified · Split
| @@ -1374,6 +1374,13 @@ DECODING_STATE CWelsDecoder::ParseAccessUnit (SWelsDecoderThreadCTX& sThreadCtx) · 1373 unmodified lines | |||
| 1374 | sThreadCtx.pCtx->iImgHeightInPixel = m_pLastDecThrCtx->pCtx->iImgHeightInPixel; | 1374 | sThreadCtx.pCtx->iImgHeightInPixel = m_pLastDecThrCtx->pCtx->iImgHeightInPixel; |
| 1375 | } | 1375 | } |
| 1376 | } | 1376 | } |
| 1377 | |||
| 1378 | //if threadCount > 1, then each thread must contain exact one complete frame. | ||
| 1379 | if (GetThreadCount (sThreadCtx.pCtx) > 1) { | ||
| 1380 | sThreadCtx.pCtx->pAccessUnitList->uiAvailUnitsNum = 0; | ||
| 1381 | sThreadCtx.pCtx->pAccessUnitList->uiActualUnitsNum = 0; | ||
| 1382 | } | ||
| 1383 | |||
| 1377 | int32_t iRet = DecodeFrame2WithCtx (sThreadCtx.pCtx, sThreadCtx.kpSrc, sThreadCtx.kiSrcLen, sThreadCtx.ppDst, | 1384 | int32_t iRet = DecodeFrame2WithCtx (sThreadCtx.pCtx, sThreadCtx.kpSrc, sThreadCtx.kiSrcLen, sThreadCtx.ppDst, |
| 1378 | &sThreadCtx.sDstInfo); | 1385 | &sThreadCtx.sDstInfo); |
| 1379 | 1386 | ||