From 2aab7dd653d7333fc4ea0eeb0049a430a558bd49 Mon Sep 17 00:00:00 2001 From: Kyle Hill Date: Wed, 29 Aug 2012 10:11:04 -0500 Subject: [PATCH] Fix possible integer overflow in CDDAcodec.cpp --- xbmc/cores/paplayer/CDDAcodec.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xbmc/cores/paplayer/CDDAcodec.cpp b/xbmc/cores/paplayer/CDDAcodec.cpp index 5e73b0c383357..3e7bf025bf3f5 100644 --- a/xbmc/cores/paplayer/CDDAcodec.cpp +++ b/xbmc/cores/paplayer/CDDAcodec.cpp @@ -89,7 +89,7 @@ int64_t CDDACodec::Seek(int64_t iSeekTime) // ... and look if we really got there. int iNewSeekTime=(iNewOffset/CDIO_CD_FRAMESIZE_RAW)/CDIO_CD_FRAMES_PER_SEC; - return iNewSeekTime*1000; // ms + return iNewSeekTime*(int64_t)1000; // ms } int CDDACodec::ReadPCM(BYTE *pBuffer, int size, int *actualsize) @@ -154,4 +154,4 @@ CAEChannelInfo CDDACodec::GetChannelInfo() return CAEUtil::GuessChLayout(m_Channels); return CAEChannelInfo(map[m_Channels - 1]); -} \ No newline at end of file +}