Fix minor windows pedantic warnings.

This commit is contained in:
Jason Felds
2016-03-27 22:03:15 -04:00
parent 534909d30a
commit bec18a0d36
31 changed files with 173 additions and 67 deletions
+7 -3
View File
@@ -389,7 +389,7 @@ int RageSoundReader_MP3::do_mad_frame_decode( bool headers_only )
{
int bytes_read = 0;
while(1)
for(;;)
{
int ret;
@@ -861,7 +861,7 @@ int RageSoundReader_MP3::SetPosition_hard( int iFrame )
}
/* Decode frames until the current frame contains the desired offset. */
while(1)
for(;;)
{
/* If desired < next_frame_timer, this frame contains the position. Since we've
* already decoded the frame, synth it, too. */
@@ -1035,13 +1035,17 @@ int RageSoundReader_MP3::GetLengthInternal( bool fast )
}
MADLIB_rewind();
while(1)
for(;;)
{
int ret = do_mad_frame_decode( true );
if( ret == -1 )
{
return -1; /* it set the error */
}
if( ret == 0 ) /* EOF */
{
break;
}
}
/* mad->Timer is the timestamp of the current frame; find the timestamp of