diff options
author | Sven Gothel <[email protected]> | 2023-05-20 06:26:15 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-05-20 06:26:15 +0200 |
commit | 2cc4643d7d2c31607a3089eaa3d77cb6b68df9be (patch) | |
tree | 57e2abdf8abe07c04539f07eefd806dff73eca6c | |
parent | 7905a197ee21e07bb3a6f5ea33fb789c98253af0 (diff) |
FFMPEGMediaPlayer: Adjust to AudioFormat changes
-rw-r--r-- | src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java | 4 |
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; } |