Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -476,10 +476,13 @@ int CWelsH264SVCEncoder::ForceIntraFrame (bool bIDR, int iLayerId) { · 475 unmodified lines | |||
| 476 | if (! (m_pEncContext && m_bInitialFlag)) { | 476 | if (! (m_pEncContext && m_bInitialFlag)) { |
| 477 | return 1; | 477 | return 1; |
| 478 | } | 478 | } |
| 479 | |||
| 479 | //WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, | 480 | //WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, |
| 480 | // "CWelsH264SVCEncoder::ForceIntraFrame(), bIDR= %d", bIDR); | 481 | // "CWelsH264SVCEncoder::ForceIntraFrame(), bIDR= %d", bIDR); |
| 481 | 482 | ||
| 482 | ForceCodingIDR (m_pEncContext, iLayerId); | 483 | if ( bIDR ) { |
| 484 | ForceCodingIDR(m_pEncContext, iLayerId); | ||
| 485 | } | ||
| 483 | 486 | ||
| 484 | return 0; | 487 | return 0; |
| 485 | } | 488 | } |