From 3e8894de1b26caf93e7d7b395aff332a3c522d65 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 21 May 2023 16:51:52 +0200 Subject: *MediaPlayer: Adop to JOAL 39a32fd56de313c31bd197ee6022288e97f9729a --- src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jogl/classes/jogamp/opengl/util/av/impl') 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; } -- cgit v1.2.3