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 03b000686c..80797df064 100644
--- a/apps/codecs/wma.c
+++ b/apps/codecs/wma.c
@@ -403,7 +403,7 @@ static int seek(int ms, asf_waveformatex_t* wfx)
403 403
404 /*estimate packet number from bitrate*/ 404 /*estimate packet number from bitrate*/
405 int initial_packet = ci->curpos/wfx->packet_size; 405 int initial_packet = ci->curpos/wfx->packet_size;
406 int packet_num = (ms*(wfx->bitrate>>3))/wfx->packet_size/1000; 406 int packet_num = (((int64_t)ms)*(wfx->bitrate>>3))/wfx->packet_size/1000;
407 int last_packet = ci->id3->filesize / wfx->packet_size; 407 int last_packet = ci->id3->filesize / wfx->packet_size;
408 408
409 if (packet_num > last_packet) { 409 if (packet_num > last_packet) {