From dacca25190e80bfb15937fc7c525dfc850575636 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 24 Nov 2008 07:53:47 +0000 Subject: [PATCH] Silence gcc warnings by making explicit the cast from 64 bits to 32 bits. --- stepmania/src/RageSoundReader_MP3.cpp | 2 +- stepmania/src/RageSoundReader_Vorbisfile.cpp | 2 +- stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/RageSoundReader_MP3.cpp b/stepmania/src/RageSoundReader_MP3.cpp index 59b784deab..fd6a8796c2 100644 --- a/stepmania/src/RageSoundReader_MP3.cpp +++ b/stepmania/src/RageSoundReader_MP3.cpp @@ -271,7 +271,7 @@ struct madlib_t static float scale(mad_fixed_t sample) { - return (double) sample / (1<time_base); + m_fPTS = float( m_Packet.dts * av_q2d(m_pStream->time_base) ); /* dts is the timestamp of the first frame in this packet. Only use it once; * if we get more than one frame from the same packet (eg. f;lushing the last