ref: e244a5eb912509325f9fc1434b587572c699e76c
parent: 263cb539001007fd71634fb8463bf352f02368e1
parent: 9950a6f865b31eadee8dd62953db76143fe0e138
author: ruil2 <[email protected]>
date: Mon Aug 27 05:44:36 EDT 2018
Merge pull request #3004 from mstorsjo/remaining Make sure to return a value for DECODER_OPTION_NUM_OF_FRAMES_REMAINING_IN_BUFFER for other profiles
--- a/codec/decoder/plus/src/welsDecoderExt.cpp
+++ b/codec/decoder/plus/src/welsDecoderExt.cpp
@@ -473,6 +473,8 @@
} else if (DECODER_OPTION_NUM_OF_FRAMES_REMAINING_IN_BUFFER == eOptID) {
if (m_pDecContext->pSps && m_pDecContext->pSps->uiProfileIdc != 66 && m_pDecContext->pPps->bEntropyCodingModeFlag) {
* ((int*)pOption) = m_iNumOfPicts > 0 ? m_iNumOfPicts : 0;
+ } else {
+ * ((int*)pOption) = 0;
}
return cmResultSuccess;
}