Patch - FLAC Seeking
Adam Torgerson
adam_torgerson at fastmail.fm
Mon Nov 13 16:25:17 EST 2006
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>
More information about the sdlsound
mailing list