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 98a6758 commit 7d5972eCopy full SHA for 7d5972e
src/torchcodec/decoders/_core/VideoDecoder.h
@@ -299,6 +299,11 @@ class VideoDecoder {
299
private:
300
struct FrameInfo {
301
int64_t pts = 0;
302
+ // The value of this default is important: the last frame's nextPts will be
303
+ // INT64_MAX, which ensures that the allFrames vec contains FrameInfo
304
+ // structs with *increasing* nextPts values. That's a necessary condition
305
+ // for the binary searches on those values to work properly (as typically
306
+ // done during pts -> index conversions.)
307
int64_t nextPts = INT64_MAX;
308
};
309
struct FilterState {
0 commit comments