ref: 3d8482486e345da38f70c021c5a9c905e360cf55
parent: be8e62ff47c9d7967e9f402baabe34de1482ec86
author: akallabeth <akallabeth@posteo.net>
date: Thu Jul 2 10:37:27 EDT 2020
Fixed #3305: Frame reorder after the frame is read.
--- a/codec/decoder/plus/src/welsDecoderExt.cpp
+++ b/codec/decoder/plus/src/welsDecoderExt.cpp
@@ -1224,7 +1224,7 @@
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);