From 32880bae630a43540fbe36fe2c787f2fdd5d2380 Mon Sep 17 00:00:00 2001 From: Xerxes Rånby Date: Sun, 12 May 2013 12:33:07 +0200 Subject: FFMPEGMediaPlayer: fix audio pts for varying audio frame format. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Xerxes Rånby --- src/jogl/native/libav/jogamp_opengl_util_av_impl_FFMPEGMediaPlayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jogl/native/libav') diff --git a/src/jogl/native/libav/jogamp_opengl_util_av_impl_FFMPEGMediaPlayer.c b/src/jogl/native/libav/jogamp_opengl_util_av_impl_FFMPEGMediaPlayer.c index bac299954..d93caa30b 100644 --- a/src/jogl/native/libav/jogamp_opengl_util_av_impl_FFMPEGMediaPlayer.c +++ b/src/jogl/native/libav/jogamp_opengl_util_av_impl_FFMPEGMediaPlayer.c @@ -665,7 +665,7 @@ JNIEXPORT jint JNICALL Java_jogamp_opengl_util_av_impl_FFMPEGMediaPlayer_readNex data_size = sp_av_samples_get_buffer_size(NULL /* linesize, may be NULL */, pAV->aChannels, pAV->pAFrame->nb_samples, - pAV->aSampleFmt, + pAV->pAFrame->format, 1 /* align */); } int32_t pts = (int64_t) ( pAV->pAFrame->pkt_pts * (int64_t) 1000 * (int64_t) pAV->pAStream->time_base.num ) -- cgit v1.2.3