mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-02 22:11:22 +00:00
snd_mp3.c (mp3_madseek): clang, -Wtautological-compare: fixed the
"comparison of unsigned expression >= 0 is always true" warning for to_skip_samples. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@624 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
7cddd6cb2b
commit
bd81e60d0e
1 changed files with 1 additions and 2 deletions
|
@ -411,7 +411,7 @@ static int mp3_madseek(snd_stream_t *stream, unsigned long offset)
|
|||
depadded = true;
|
||||
mad_stream_buffer(&p->Stream, p->mp3_buffer + padding, leftover + bytes_read - padding);
|
||||
|
||||
while (to_skip_samples >= 0) /* Decode frame headers */
|
||||
while (1) /* Decode frame headers */
|
||||
{
|
||||
static unsigned short samples;
|
||||
p->Stream.error = MAD_ERROR_NONE;
|
||||
|
@ -473,7 +473,6 @@ static int mp3_madseek(snd_stream_t *stream, unsigned long offset)
|
|||
{
|
||||
p->FrameCount = offset / samples;
|
||||
to_skip_samples = offset % samples;
|
||||
|
||||
if (0 != FS_fseek(&stream->fh, (p->FrameCount * consumed / 64) + tagsize, SEEK_SET))
|
||||
return -1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue