1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-04 16:14:00 +01:00

lazy evaluate for OD ffmpeg seek test

This commit is contained in:
mchinen
2012-06-01 06:11:41 +00:00
parent 77917b3268
commit 2aedaaa68d

View File

@@ -283,7 +283,7 @@ int ODFFmpegDecoder::Decode(samplePtr & data, sampleFormat & format, sampleCount
//look at the decoding timestamp and see if the next sample that will be decoded is not the next sample we need.
if(len && SeekingAllowed() && (mCurrentPos > start + len || mCurrentPos + kDecodeSampleAllowance < start )) {
if(len && (mCurrentPos > start + len || mCurrentPos + kDecodeSampleAllowance < start ) && SeekingAllowed()) {
sc = mScs[mStreamIndex];
AVStream* st = sc->m_stream;
int stindex = -1;