Skip to content
This repository was archived by the owner on Nov 30, 2025. It is now read-only.

Commit 7ef4f1d

Browse files
committed
Update FFFrameReader
1 parent 3593880 commit 7ef4f1d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

source/FFMC.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class MultiCrop
4848

4949
shared_ptr<Ffr::Encoder> m_encoder = nullptr;
5050
CropOptions m_cropList;
51-
int64_t m_lastValidTime = -1;
51+
int64_t m_lastValidTime = INT64_MIN;
5252
};
5353

5454
vector<EncoderParams> m_encoders;
@@ -256,7 +256,7 @@ class MultiCrop
256256
}
257257

258258
// Correct timestamp in case of skip regions
259-
const int64_t timeStamp = (i.m_lastValidTime >= 0) ?
259+
const int64_t timeStamp = (i.m_lastValidTime != INT64_MIN) ?
260260
i.m_lastValidTime + (frame->m_frame->best_effort_timestamp - lastTime) :
261261
0;
262262
newFrame->m_frame->best_effort_timestamp = timeStamp;

0 commit comments

Comments
 (0)