History

API update--do nothing if bIDR set to false when calling ForceIntraFrame()

shihuade committed 10 years ago

Commit d76d62d1 parent 8bf907e1 file · +4 −1Browse files

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

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+4−1
@@ -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}

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