Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -473,15 +473,15 @@ int CWelsH264SVCEncoder::EncodeParameterSets (SFrameBSInfo* pBsInfo) { · 472 unmodified lines | |||
| 473 | * Force key frame | 473 | * Force key frame |
| 474 | */ | 474 | */ |
| 475 | int CWelsH264SVCEncoder::ForceIntraFrame (bool bIDR, int iLayerId) { | 475 | int CWelsH264SVCEncoder::ForceIntraFrame (bool bIDR, int iLayerId) { |
| 476 | if (! (m_pEncContext && m_bInitialFlag)) { | ||
| 477 | return 1; | ||
| 478 | } | ||
| 479 | |||
| 480 | //WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, | ||
| 481 | // "CWelsH264SVCEncoder::ForceIntraFrame(), bIDR= %d", bIDR); | ||
| 482 | |||
| 483 | if ( bIDR ) { | 476 | if ( bIDR ) { |
| 477 | if (! (m_pEncContext && m_bInitialFlag)) { | ||
| 478 | return 1; | ||
| 479 | } | ||
| 480 | |||
| 484 | ForceCodingIDR(m_pEncContext, iLayerId); | 481 | ForceCodingIDR(m_pEncContext, iLayerId); |
| 482 | } else { | ||
| 483 | WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, | ||
| 484 | "CWelsH264SVCEncoder::ForceIntraFrame(),nothing to do as bIDR set to false"); | ||
| 485 | } | 485 | } |
| 486 | 486 | ||
| 487 | return 0; | 487 | return 0; |