Fixed #3305: Frame reorder after the frame is read.
Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 2 files). Show all
Unified · Split
| @@ -1222,7 +1222,7 @@ void CWelsDecoder::ReleaseBufferedReadyPicture (PWelsDecoderContext pCtx, unsign · 1221 unmodified lines | |||
| 1222 | DECODING_STATE CWelsDecoder::ReorderPicturesInDisplay (PWelsDecoderContext pDecContext, unsigned char** ppDst, | 1222 | DECODING_STATE CWelsDecoder::ReorderPicturesInDisplay (PWelsDecoderContext pDecContext, unsigned char** ppDst, |
| 1223 | SBufferInfo* pDstInfo) { | 1223 | SBufferInfo* pDstInfo) { |
| 1224 | DECODING_STATE iRet = dsErrorFree; | 1224 | DECODING_STATE iRet = dsErrorFree; |
| 1225 | if (pDstInfo->iBufferStatus == 1) { | 1225 | if ((pDstInfo->iBufferStatus == 1) && (pDecContext->pPps->bEntropyCodingModeFlag)) { |
| 1226 | m_bIsBaseline = pDecContext->pSps->uiProfileIdc == 66 || pDecContext->pSps->uiProfileIdc == 83; | 1226 | m_bIsBaseline = pDecContext->pSps->uiProfileIdc == 66 || pDecContext->pSps->uiProfileIdc == 83; |
| 1227 | if (!m_bIsBaseline) { | 1227 | if (!m_bIsBaseline) { |
| 1228 | BufferingReadyPicture (pDecContext, ppDst, pDstInfo); | 1228 | BufferingReadyPicture (pDecContext, ppDst, pDstInfo); |