Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 2 files). Show all
Unified · Split
| @@ -227,7 +227,8 @@ void CWelsDecoder::UninitDecoder (void) { · 226 unmodified lines | ||
| 227 | 227 | // the return value of this function is not suitable, it need report failure info to upper layer. |
| 228 | 228 | void CWelsDecoder::InitDecoder (void) { |
| 229 | 229 | |
| 230 | − WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsDecoder::init_decoder().."); | |
| 230 | + WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsDecoder::init_decoder(), openh264 codec version = %s", | |
| 231 | + VERSION_NUMBER); | |
| 231 | 232 | |
| 232 | 233 | m_pDecContext = (PWelsDecoderContext)WelsMalloc (sizeof (SWelsDecoderContext), "m_pDecContext"); |
| 233 | 234 | |
| @@ -278,6 +279,8 @@ long CWelsDecoder::SetOption (DECODER_OPTION eOptID, void* pOption) { · 44 unmodified lines | ||
| 278 | 279 | if (m_pWelsTrace) { |
| 279 | 280 | WelsTraceCallback callback = * ((WelsTraceCallback*)pOption); |
| 280 | 281 | m_pWelsTrace->SetTraceCallback (callback); |
| 282 | + WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsDecoder::SetOption(), openh264 codec version = %s.", | |
| 283 | + VERSION_NUMBER); | |
| 281 | 284 | } |
| 282 | 285 | return cmResultSuccess; |
| 283 | 286 | } else if (eOptID == DECODER_OPTION_TRACE_CALLBACK_CONTEXT) { |
| @@ -480,7 +483,7 @@ using namespace WelsDec; · 196 unmodified lines | ||
| 480 | 483 | * WelsGetDecoderCapability |
| 481 | 484 | * @return: DecCapability information |
| 482 | 485 | */ |
| 483 | −int WelsGetDecoderCapability(SDecoderCapability* pDecCapability) { | |
| 486 | +int WelsGetDecoderCapability (SDecoderCapability* pDecCapability) { | |
| 484 | 487 | memset (pDecCapability, 0, sizeof (SDecoderCapability)); |
| 485 | 488 | pDecCapability->iProfileIdc = 66; //Baseline |
| 486 | 489 | pDecCapability->iProfileIop = 0xE0; //11100000b |