Skip to content

Commit

Permalink
Finally fixed the bug where time formats are set wrong.
Browse files Browse the repository at this point in the history
  • Loading branch information
Agrarvolution committed Feb 1, 2024
1 parent 2a6a625 commit 5dae403
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jsx/KBRG/ThumbnailMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ ThumbnailMetadata.prototype.updateFromMetadataDate = function (targetFramerate,
default:
return false;
}
return this.updateTimecodeMetadata(new Timecode(dateUpdate, this.timecodeMetadata.framerate));
return this.updateTimecodeMetadata(new Timecode(dateUpdate, targetFramerate));
}

/**
Expand Down Expand Up @@ -310,7 +310,7 @@ ThumbnailMetadata.prototype.updateTimecodeMetadata = function (newStartTime) {
this.xmp.setStructField(XMPConst.NS_DM, this.timecodeMetadata.timecodeStruct, XMPConst.NS_DM,
ThumbnailMetadata.PREVIOUS_TIME_FORMAT, Timecode.createTimeFormat(this.timecodeMetadata.prevFramerate));
this.xmp.setStructField(XMPConst.NS_DM, this.timecodeMetadata.timecodeStruct, XMPConst.NS_DM,
ThumbnailMetadata.PREVIOUS_TIME_FORMAT, this.timecodeMetadata.prevStartTime.toString());
ThumbnailMetadata.PREVIOUS_TIME_VALUE, this.timecodeMetadata.prevStartTime.toString());

if (this.audioMetadata) {
this.xmp.setProperty(XMPConst.NS_BWF, "timeReference",
Expand Down

0 comments on commit 5dae403

Please sign in to comment.