1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-19 17:40:15 +02: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;