mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 08:39:46 +02:00
Fix a compiler warning.
This commit is contained in:
parent
8bdcc670fe
commit
15f9695d18
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user