From adam_torgerson at fastmail.fm  Mon Nov 13 16:25:17 2006
From: adam_torgerson at fastmail.fm (Adam Torgerson)
Date: Mon, 13 Nov 2006 14:25:17 -0700
Subject: Patch - FLAC Seeking
Message-ID: <1163453117.5692.10.camel@mothma.boulderlabs.com>

Hi,
There is an overflow which cropps up pretty quickly in the FLAC seeking
code. Here is a patch that fixes it.

Are there any list archives? I didn't see any linked...

Adam

===================================================================
--- decoders/flac.c     (revision 531)
+++ decoders/flac.c     (working copy)
@@ -573,7 +573,7 @@
     Sound_SampleInternal *internal = (Sound_SampleInternal *)
sample->opaque;
     flac_t *f = (flac_t *) internal->decoder_private;

-    d_seek_absolute(f->decoder, (ms * sample->actual.rate) / 1000);
+    d_seek_absolute(f->decoder, ((Uint64)ms * sample->actual.rate) /
1000);
     return(1);
 } /* FLAC_seek */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
URL: <http://icculus.org/pipermail/sdlsound/attachments/20061113/47c2101e/attachment.pgp>

