fix bug spotted by newer typescript

This commit is contained in:
Scott Lamb 2025-02-10 11:09:02 -08:00
parent 0bfa09b1f1
commit c75292e43b

View File

@ -78,7 +78,9 @@ export function combine(
(split90k === undefined || cur.endTime90k - r.startTime90k <= split90k)
) {
cur.startId = r.startId;
cur.firstUncommitted == r.firstUncommitted ?? cur.firstUncommitted;
if (r.firstUncommitted !== undefined) {
cur.firstUncommitted = r.firstUncommitted;
}
cur.startTime90k = r.startTime90k;
cur.videoSamples += r.videoSamples;
cur.sampleFileBytes += r.sampleFileBytes;