Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fpv-wtf committed Jul 17, 2023
1 parent 9352feb commit 0fd3f7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/osd-overlay/mp4/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export class MP4Writer {
},
alternateGroup: 0,
creationTime: nowMp4Time,
duration: this.sampleCount * 60,
duration: Math.floor((this.sampleCount * 1000) / this.frameRate),
width: this.displaySize!.width,
height: this.displaySize!.height,
layer: 0,
Expand Down
2 changes: 1 addition & 1 deletion src/osd-overlay/processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export class Processor {
// Processed files may need reordering of the frames described in the ctts box.
const orderedFrames = this.reorderFrames(lastSampleIndex);

// Modify and enque frames for encoding.
// Modify and enqueue frames for encoding.
this.encodedFrames = [];
for (const [index, entry] of orderedFrames.entries()) {
if (!entry.image) {
Expand Down

0 comments on commit 0fd3f7a

Please sign in to comment.