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 c03294b commit 5ab33b9Copy full SHA for 5ab33b9
src/torchcodec/decoders/_core/VideoDecoder.cpp
@@ -1119,6 +1119,8 @@ VideoDecoder::BatchDecodedOutput VideoDecoder::getFramesDisplayedByTimestamps(
1119
1120
auto it = std::lower_bound(
1121
stream.allFrames.begin(),
1122
+ // See https://github.com/pytorch/torchcodec/pull/286 for why the `- 1`
1123
+ // is needed.
1124
stream.allFrames.end() - 1,
1125
framePts,
1126
[&stream](const FrameInfo& info, double framePts) {
0 commit comments