Skip to content

Commit 2295241

Browse files
committed
Fix
1 parent 9acc148 commit 2295241

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/torchcodec/_core/SingleStreamDecoder.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,9 +1108,6 @@ I P P P I P P P I P P I P P I P
11081108
*/
11091109
bool SingleStreamDecoder::canWeAvoidSeeking() const {
11101110
const StreamInfo& streamInfo = streamInfos_.at(activeStreamIndex_);
1111-
if (!cursorWasJustSet_) {
1112-
return true;
1113-
}
11141111
if (streamInfo.avMediaType == AVMEDIA_TYPE_AUDIO) {
11151112
// For audio, we only need to seek if a backwards seek was requested
11161113
// within getFramesPlayedInRangeAudio(), when setCursorPtsInSeconds() was

0 commit comments

Comments
 (0)