AUDIO: Don't allow skipping negative times in skipSamples()
This commit is contained in:
parent
b50f5a4cde
commit
f0091af6b5
1 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue