Skip to content

Commit 27a2683

Browse files
authored
chore: kickoff release
2 parents 400e45d + 5df18a1 commit 27a2683

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/FaceLiveness/AV/VideoChunker.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ final class VideoChunker {
4444
state = .awaitingSingleFrame
4545

4646
// explicitly calling `endSession` is unnecessary
47-
assetWriter.finishWriting {}
47+
if state != .complete {
48+
assetWriter.finishWriting {}
49+
}
4850
}
4951

5052
func consume(_ buffer: CMSampleBuffer) {

0 commit comments

Comments
 (0)