We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9acc148 commit 2295241Copy full SHA for 2295241
src/torchcodec/_core/SingleStreamDecoder.cpp
@@ -1108,9 +1108,6 @@ I P P P I P P P I P P I P P I P
1108
*/
1109
bool SingleStreamDecoder::canWeAvoidSeeking() const {
1110
const StreamInfo& streamInfo = streamInfos_.at(activeStreamIndex_);
1111
- if (!cursorWasJustSet_) {
1112
- return true;
1113
- }
1114
if (streamInfo.avMediaType == AVMEDIA_TYPE_AUDIO) {
1115
// For audio, we only need to seek if a backwards seek was requested
1116
// within getFramesPlayedInRangeAudio(), when setCursorPtsInSeconds() was
0 commit comments