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