Skip to content

Commit

Permalink
Fix possible integer overflow in CDDAcodec.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Hill committed Sep 1, 2012
1 parent c6de7b0 commit 2aab7dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/cores/paplayer/CDDAcodec.cpp
Expand Up @@ -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)
Expand Down Expand Up @@ -154,4 +154,4 @@ CAEChannelInfo CDDACodec::GetChannelInfo()
return CAEUtil::GuessChLayout(m_Channels);

return CAEChannelInfo(map[m_Channels - 1]);
}
}

0 comments on commit 2aab7dd

Please sign in to comment.