diff options
author | Xerxes Rånby <[email protected]> | 2013-05-12 12:33:07 +0200 |
---|---|---|
committer | Xerxes Rånby <[email protected]> | 2013-05-12 12:33:07 +0200 |
commit | 32880bae630a43540fbe36fe2c787f2fdd5d2380 (patch) | |
tree | 2db0111d51abe1afd0a77a8f6cc6f983cea995f6 /src/jogl/native/libav | |
parent | f4ab6922a93d349ee5d1a9a90206c6f80ee0c281 (diff) |
FFMPEGMediaPlayer: fix audio pts for varying audio frame format.
Signed-off-by: Xerxes Rånby <[email protected]>
Diffstat (limited to 'src/jogl/native/libav')
-rw-r--r-- | src/jogl/native/libav/jogamp_opengl_util_av_impl_FFMPEGMediaPlayer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) |