Skip to content

Commit

Permalink
Prevent exception due to null time scale
Browse files Browse the repository at this point in the history
Contributes to #561
  • Loading branch information
drewnoakes committed Apr 3, 2022
1 parent ca0cb05 commit 511ab14
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ public void processMediaInformation(@NotNull SequentialReader reader, @NotNull A
@Override
protected void processTimeToSample(@NotNull SequentialReader reader, @NotNull Atom atom, QuickTimeContext context) throws IOException
{
directory.setDouble(QuickTimeSoundDirectory.TAG_AUDIO_SAMPLE_RATE, context.timeScale);
if (context.timeScale != null) {
directory.setDouble(QuickTimeSoundDirectory.TAG_AUDIO_SAMPLE_RATE, context.timeScale);
}
}
}

0 comments on commit 511ab14

Please sign in to comment.