diff options
author | Sven Gothel <[email protected]> | 2023-05-21 16:51:52 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-05-21 16:51:52 +0200 |
commit | 3e8894de1b26caf93e7d7b395aff332a3c522d65 (patch) | |
tree | 66eeebbf5772fc588bf558f62af4c8a53733e725 /src/jogl/classes/jogamp/opengl/util/av/impl | |
parent | 07da0949aae6d13c7cca12bc4728e98b161dbf42 (diff) |
*MediaPlayer: Adop to JOAL 39a32fd56de313c31bd197ee6022288e97f9729a
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/util/av/impl')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java b/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java index 25ef6fd8a..d6bbbdc5d 100644 --- a/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java +++ b/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java @@ -432,7 +432,7 @@ public class FFMPEGMediaPlayer extends GLMediaPlayerImpl { } else { final int frameDuration; if( audioSamplesPerFrameAndChannel > 0 ) { - frameDuration = avChosenAudioFormat.getSamplesDuration(audioSamplesPerFrameAndChannel); + frameDuration = Math.round( 1000f * avChosenAudioFormat.getSamplesDuration(audioSamplesPerFrameAndChannel) ); } else { frameDuration = AudioSink.DefaultFrameDuration; } |