1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 00:29:41 +02:00

Fix a compiler warning.

This commit is contained in:
v.audacity 2012-07-16 23:46:20 +00:00
parent 8bdcc670fe
commit 15f9695d18

View File

@ -646,7 +646,7 @@ void ODFFmpegDecoder::InsertCache(FFMpegDecodeCache* cache) {
{
int dropindex;
//drop which ever index is further from our newly added one.
dropindex = (guess > mDecodeCache.size()/2) ? 0 : (mDecodeCache.size()-1);
dropindex = (guess > (int)mDecodeCache.size()/2) ? 0 : (mDecodeCache.size()-1);
mNumSamplesInCache-=mDecodeCache[dropindex]->len;
free(mDecodeCache[dropindex]->samplePtr);
delete mDecodeCache[dropindex];