need longer ints for length calculation

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@835 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2010-09-11 00:18:42 +00:00
parent e98bb44bb5
commit cbaa24729b

View File

@ -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