Skip to content

Commit

Permalink
Improve chunk reading
Browse files Browse the repository at this point in the history
  • Loading branch information
niksedk committed Nov 22, 2022
1 parent 91ffa85 commit d1b8000
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 204 deletions.
3 changes: 1 addition & 2 deletions src/Mp4Browser/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@ private void buttonSaveSubtitle_Click(object sender, EventArgs e)
var sb = new StringBuilder();
foreach (var timeInfo in stbl.Ssts)
{
for (int i = 0; i < timeInfo.SampleCount; i++)
{
totalTime += timeInfo.SampleDelta / (double)stbl.TimeScale;
totalTime += timeInfo / (double)stbl.TimeScale;
allTimes.Add(totalTime);
}
}
Expand Down
Loading

0 comments on commit d1b8000

Please sign in to comment.