History

Merge pull request #2374 from sijchen/for_ts0

[Encoder] fix timestamp = 0 issue when rc mode is BITRATE mode

ruil2 committed 10 years ago

Commit 3e538612 parents 78ae48c 881fc116 files · +27 −16Browse files

Showing the changes to codec/encoder/core/src/ratectl.cpp (1 of 6 files). Show all

Unified · Split

codec/encoder/core/src/ratectl.cpp+7−0
@@ -1544,4 +1544,11 @@ void WelsRcFreeMemory (sWelsEncCtx* pEncCtx) { · 1543 unmodified lines
1544 }1544 }
1545}1545}
1546 1546
1547long long GetTimestampForRc(const long long uiTimeStamp, const long long uiLastTimeStamp, const float fFrameRate) {
1548 if ((uiLastTimeStamp >= uiTimeStamp) || ((uiTimeStamp == 0) && (uiLastTimeStamp != -1))) {
1549 return (uiLastTimeStamp + (int32_t) (1000.0 / fFrameRate));
1550 }
1551 return uiTimeStamp;
1552}
1553
1547}//end of namespace1554}//end of namespace

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