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
476476 if (! (m_pEncContext && m_bInitialFlag)) {
477477 return 1;
478478 }
479+
479480 //WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO,
480481 // "CWelsH264SVCEncoder::ForceIntraFrame(), bIDR= %d", bIDR);
481482
482− ForceCodingIDR (m_pEncContext, iLayerId);
483+ if ( bIDR ) {
484+ ForceCodingIDR(m_pEncContext, iLayerId);
485+ }
483486
484487 return 0;
485488 }

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