ref: 9950a6f865b31eadee8dd62953db76143fe0e138
parent: e9980927f7ddd347981839aec144441aa78258d4
author: Martin Storsjö <[email protected]>
date: Tue Jul 31 08:59:15 EDT 2018
Make sure to return a value for DECODER_OPTION_NUM_OF_FRAMES_REMAINING_IN_BUFFER for other profiles If the profile isn't yet known, return 0 here instead of not returning anything at all.
--- 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;
}