AUDIO: Don't allow skipping negative times in skipSamples()

This commit is contained in:
Matthew Hoops 2012-10-03 10:44:57 -04:00
parent b50f5a4cde
commit f0091af6b5

View file

@ -395,9 +395,9 @@ AudioStream *QuickTimeAudioDecoder::QuickTimeAudioTrack::readAudioChunk(uint chu
}
void QuickTimeAudioDecoder::QuickTimeAudioTrack::skipSamples(const Timestamp &length, AudioStream *stream) {
uint32 sampleCount = length.convertToFramerate(getRate()).totalNumberOfFrames();
int32 sampleCount = length.convertToFramerate(getRate()).totalNumberOfFrames();
if (sampleCount == 0)
if (sampleCount <= 0)
return;
if (isStereo())