diff options
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java')
-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; } |