From cbaa24729b0bec2494321a80b629006cfaacd651 Mon Sep 17 00:00:00 2001 From: halleyscometsw Date: Sat, 11 Sep 2010 00:18:42 +0000 Subject: [PATCH] need longer ints for length calculation git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@835 51a99a44-fe44-0410-b1ba-c3e57ba2b86b --- src/coding/mpeg_decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coding/mpeg_decoder.c b/src/coding/mpeg_decoder.c index 0a0c1a11..3fb659c3 100644 --- a/src/coding/mpeg_decoder.c +++ b/src/coding/mpeg_decoder.c @@ -215,7 +215,7 @@ void decode_mpeg(VGMSTREAMCHANNEL *stream, } long mpeg_bytes_to_samples(long bytes, const struct mpg123_frameinfo *mi) { - return bytes * mi->rate * 8 / (mi->bitrate * 1000); + return (int64_t)bytes * mi->rate * 8 / (mi->bitrate * 1000); } #endif