mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-17 11:57:08 +01:00
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:
parent
e98bb44bb5
commit
cbaa24729b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user