Skip to content

Commit 9db86e5

Browse files
committed
Prevent calls to setCursor on floats
1 parent 324b509 commit 9db86e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/torchcodec/decoders/_core/VideoDecoder.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ class VideoDecoder {
368368
// --------------------------------------------------------------------------
369369

370370
void setCursor(int64_t pts);
371+
void setCursor(double) = delete; // prevent calls with doubles and floats
371372
bool canWeAvoidSeeking() const;
372373

373374
void maybeSeekToBeforeDesiredPts();

0 commit comments

Comments
 (0)