Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 2 files). Show all
Unified · Split
| @@ -425,6 +425,20 @@ long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void* pOption) { · 424 unmodified lines | |||
| 425 | pVuiSarInfo->bOverscanAppropriateFlag = m_pDecContext->pSps->sVui.bOverscanAppropriateFlag; | 425 | pVuiSarInfo->bOverscanAppropriateFlag = m_pDecContext->pSps->sVui.bOverscanAppropriateFlag; |
| 426 | return cmResultSuccess; | 426 | return cmResultSuccess; |
| 427 | } | 427 | } |
| 428 | } else if (DECODER_OPTION_PROFILE == eOptID) { | ||
| 429 | if (!m_pDecContext->pSps) { | ||
| 430 | return cmInitExpected; | ||
| 431 | } | ||
| 432 | iVal = (int) m_pDecContext->pSps->uiProfileIdc; | ||
| 433 | * ((int*)pOption) = iVal; | ||
| 434 | return cmResultSuccess; | ||
| 435 | } else if (DECODER_OPTION_LEVEL == eOptID) { | ||
| 436 | if (!m_pDecContext->pSps) { | ||
| 437 | return cmInitExpected; | ||
| 438 | } | ||
| 439 | iVal = (int) m_pDecContext->pSps->uiLevelIdc; | ||
| 440 | * ((int*)pOption) = iVal; | ||
| 441 | return cmResultSuccess; | ||
| 428 | } | 442 | } |
| 429 | 443 | ||
| 430 | return cmInitParaError; | 444 | return cmInitParaError; |