Showing the changes to codec/decoder/plus/src (1 of 1 file). Show all
Unified · Split
| @@ -1224,7 +1224,7 @@ void CWelsDecoder::ReleaseBufferedReadyPicture (PWelsDecoderContext pCtx, unsign · 1223 unmodified lines | ||
| 1224 | 1224 | DECODING_STATE CWelsDecoder::ReorderPicturesInDisplay (PWelsDecoderContext pDecContext, unsigned char** ppDst, |
| 1225 | 1225 | SBufferInfo* pDstInfo) { |
| 1226 | 1226 | DECODING_STATE iRet = dsErrorFree; |
| 1227 | − if (pDstInfo->iBufferStatus == 1) { | |
| 1227 | + if ((pDstInfo->iBufferStatus == 1) && (pDecContext->pPps->bEntropyCodingModeFlag)) { | |
| 1228 | 1228 | m_bIsBaseline = pDecContext->pSps->uiProfileIdc == 66 || pDecContext->pSps->uiProfileIdc == 83; |
| 1229 | 1229 | if (!m_bIsBaseline) { |
| 1230 | 1230 | BufferingReadyPicture (pDecContext, ppDst, pDstInfo); |