We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 67f1ceb + b888fd1 commit ee7ebb3Copy full SHA for ee7ebb3
media/libstagefright/CameraSourceTimeLapse.cpp
@@ -257,6 +257,12 @@ bool CameraSourceTimeLapse::skipFrameAndModifyTimeStamp(int64_t *timestampUs) {
257
mForceRead = false;
258
*timestampUs =
259
mLastFrameTimestampUs + mTimeBetweenTimeLapseVideoFramesUs;
260
+
261
+ // Really make sure that this video recording frame will not be dropped.
262
+ if (*timestampUs < mStartTimeUs) {
263
+ LOGI("set timestampUs to start time stamp %lld us", mStartTimeUs);
264
+ *timestampUs = mStartTimeUs;
265
+ }
266
return false;
267
}
268
0 commit comments