From 6cc269bebccc8acc6eb28fffb312d8189d4788ad Mon Sep 17 00:00:00 2001 From: akallabeth Date: Thu, 2 Jul 2020 14:37:27 +0200 Subject: [PATCH] Fixed #3305: Frame reorder after the frame is read. --- codec/decoder/plus/src/welsDecoderExt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec/decoder/plus/src/welsDecoderExt.cpp b/codec/decoder/plus/src/welsDecoderExt.cpp index 77b43273d4..a4539decaa 100644 --- a/codec/decoder/plus/src/welsDecoderExt.cpp +++ b/codec/decoder/plus/src/welsDecoderExt.cpp @@ -1224,7 +1224,7 @@ void CWelsDecoder::ReleaseBufferedReadyPicture (PWelsDecoderContext pCtx, unsign DECODING_STATE CWelsDecoder::ReorderPicturesInDisplay (PWelsDecoderContext pDecContext, unsigned char** ppDst, SBufferInfo* pDstInfo) { DECODING_STATE iRet = dsErrorFree; - if (pDstInfo->iBufferStatus == 1) { + if ((pDstInfo->iBufferStatus == 1) && (pDecContext->pPps->bEntropyCodingModeFlag)) { m_bIsBaseline = pDecContext->pSps->uiProfileIdc == 66 || pDecContext->pSps->uiProfileIdc == 83; if (!m_bIsBaseline) { BufferingReadyPicture (pDecContext, ppDst, pDstInfo);