summaryrefslogtreecommitdiff
path: root/apps/codecs
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs')
-rw-r--r--apps/codecs/wma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/wma.c b/apps/codecs/wma.c
index 03b0006..80797df 100644
--- a/apps/codecs/wma.c
+++ b/apps/codecs/wma.c
@@ -403,7 +403,7 @@ static int seek(int ms, asf_waveformatex_t* wfx)
/*estimate packet number from bitrate*/
int initial_packet = ci->curpos/wfx->packet_size;
- int packet_num = (ms*(wfx->bitrate>>3))/wfx->packet_size/1000;
+ int packet_num = (((int64_t)ms)*(wfx->bitrate>>3))/wfx->packet_size/1000;
int last_packet = ci->id3->filesize / wfx->packet_size;
if (packet_num > last_packet) {