File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ public final class MultitrackMovieRecorder {
422
422
guard self . pendingAudioSampleBuffers. count > 0 else {
423
423
return
424
424
}
425
- let ( groupsToBeAppended, pendingGroups) = pendingAudioSampleBuffers. stableGroup ( using: { $0. endTime > = lastVideoSampleTime } )
425
+ let ( groupsToBeAppended, pendingGroups) = pendingAudioSampleBuffers. stableGroup ( using: { $0. endTime < = lastVideoSampleTime } )
426
426
for group in groupsToBeAppended {
427
427
try self . appendAudioSampleBufferGroup ( group)
428
428
}
@@ -431,7 +431,7 @@ public final class MultitrackMovieRecorder {
431
431
432
432
private func tryAppendingAudioSampleBufferGroup( _ group: SampleBufferGroup ) throws {
433
433
dispatchPrecondition ( condition: . onQueue( self . queue) )
434
- if group. endTime >= self . lastVideoSampleTime {
434
+ if group. endTime > self . lastVideoSampleTime {
435
435
self . pendingAudioSampleBuffers. append ( group)
436
436
} else {
437
437
try self . appendAudioSampleBufferGroup ( group)
You can’t perform that action at this time.
0 commit comments