History

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.

Martin Storsjö committed 8 years ago

Commit 9950a6f1 parent e9980921 file · +2 −0Browse files

Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 1 file). Show all

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+2−0
@@ -473,6 +473,8 @@ long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void* pOption) { · 472 unmodified lines
473473 } else if (DECODER_OPTION_NUM_OF_FRAMES_REMAINING_IN_BUFFER == eOptID) {
474474 if (m_pDecContext->pSps && m_pDecContext->pSps->uiProfileIdc != 66 && m_pDecContext->pPps->bEntropyCodingModeFlag) {
475475 * ((int*)pOption) = m_iNumOfPicts > 0 ? m_iNumOfPicts : 0;
476+ } else {
477+ * ((int*)pOption) = 0;
476478 }
477479 return cmResultSuccess;
478480 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t