From cbc39db8705898597cbc8230ffd20354bdedfb70 Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Thu, 18 Jun 2009 17:40:44 +0300 Subject: [PATCH] Cleaned up compilation warnings. --- femonmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/femonmpeg.c b/femonmpeg.c index 25b6f53..2fcb1ad 100644 --- a/femonmpeg.c +++ b/femonmpeg.c @@ -178,7 +178,7 @@ bool getMPEGVideoInfo(uint8_t *buf, int len, video_info_t *info) info->format = VIDEO_FORMAT_UNKNOWN; break; } - info->bitrate = 400.0 * (((data[4] << 10) & 0x0003FC00UL) | ((data[5] << 2) & 0x000003FCUL) | (((data[6] & 0xC0) >> 6) & 0x00000003UL)); + info->bitrate = 400.0 * (double)(((data[4] << 10) & 0x0003FC00UL) | ((data[5] << 2) & 0x000003FCUL) | (((data[6] & 0xC0) >> 6) & 0x00000003UL)); return true; }