Silence gcc warnings by making explicit the cast from 64 bits to 32 bits.

This commit is contained in:
Steve Checkoway
2008-11-24 07:53:47 +00:00
parent 0efbd42aa3
commit dacca25190
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -271,7 +271,7 @@ struct madlib_t
static float scale(mad_fixed_t sample)
{
return (double) sample / (1<<MAD_F_FRACBITS);
return float( double(sample) / (1<<MAD_F_FRACBITS) );
}
static int get_this_frame_byte( const madlib_t *mad )
+1 -1
View File
@@ -273,7 +273,7 @@ int RageSoundReader_Vorbisfile::GetNextSourceFrame() const
{
ASSERT(vf);
int iFrame = ov_pcm_tell( vf );
int iFrame = (int)ov_pcm_tell( vf );
return iFrame;
}
@@ -412,7 +412,7 @@ int MovieDecoder_FFMpeg::DecodePacket( float fTargetTime )
{
if (m_Packet.dts != int64_t(AV_NOPTS_VALUE))
{
m_fPTS = m_Packet.dts * av_q2d(m_pStream->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