summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-05-20 06:26:15 +0200
committerSven Gothel <[email protected]>2023-05-20 06:26:15 +0200
commit2cc4643d7d2c31607a3089eaa3d77cb6b68df9be (patch)
tree57e2abdf8abe07c04539f07eefd806dff73eca6c /src/jogl/classes/jogamp
parent7905a197ee21e07bb3a6f5ea33fb789c98253af0 (diff)
FFMPEGMediaPlayer: Adjust to AudioFormat changes
Diffstat (limited to 'src/jogl/classes/jogamp')
-rw-r--r--src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java4
1 files changed, 2 insertions, 2 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 cb65761ad..25ef6fd8a 100644
--- a/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java
+++ b/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java
@@ -430,9 +430,9 @@ public class FFMPEGMediaPlayer extends GLMediaPlayerImpl {
audioSink = AudioSinkFactory.createNull();
audioSink.init(AudioSink.DefaultFormat, 0, AudioSink.DefaultInitialQueueSize, AudioSink.DefaultQueueGrowAmount, audioQueueLimit);
} else {
- final float frameDuration;
+ final int frameDuration;
if( audioSamplesPerFrameAndChannel > 0 ) {
- frameDuration= avChosenAudioFormat.getSamplesDuration(audioSamplesPerFrameAndChannel);
+ frameDuration = avChosenAudioFormat.getSamplesDuration(audioSamplesPerFrameAndChannel);
} else {
frameDuration = AudioSink.DefaultFrameDuration;
}