If the profile isn't yet known, return 0 here instead of not returning anything at all.
Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -473,6 +473,8 @@ long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void* pOption) { · 472 unmodified lines | ||
| 473 | 473 | } else if (DECODER_OPTION_NUM_OF_FRAMES_REMAINING_IN_BUFFER == eOptID) { |
| 474 | 474 | if (m_pDecContext->pSps && m_pDecContext->pSps->uiProfileIdc != 66 && m_pDecContext->pPps->bEntropyCodingModeFlag) { |
| 475 | 475 | * ((int*)pOption) = m_iNumOfPicts > 0 ? m_iNumOfPicts : 0; |
| 476 | + } else { | |
| 477 | + * ((int*)pOption) = 0; | |
| 476 | 478 | } |
| 477 | 479 | return cmResultSuccess; |
| 478 | 480 | } |