Skip to content

Commit

Permalink
B Fixed wrong function being used to calculate the timescale sannies/…
Browse files Browse the repository at this point in the history
  • Loading branch information
jimm98y committed May 21, 2023
1 parent 57ba332 commit 1588c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SharpMp4Parser/SharpMp4Parser/Muxer/Movie.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public long getTimescale()
long timescale = enumerator.Current.getTrackMetaData().getTimescale();
foreach (Track track in this.getTracks())
{
timescale = Mp4Math.gcd(track.getTrackMetaData().getTimescale(), timescale);
timescale = Mp4Math.lcm(track.getTrackMetaData().getTimescale(), timescale);
}
return timescale;
}
Expand Down

0 comments on commit 1588c2f

Please sign in to comment.