Skip to content

Commit a864bf9

Browse files
authored
Prevent calls to setCursor on floats (#601)
1 parent d830af9 commit a864bf9

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
@@ -370,6 +370,7 @@ class VideoDecoder {
370370
// --------------------------------------------------------------------------
371371

372372
void setCursor(int64_t pts);
373+
void setCursor(double) = delete; // prevent calls with doubles and floats
373374
bool canWeAvoidSeeking() const;
374375

375376
void maybeSeekToBeforeDesiredPts();

0 commit comments

Comments
 (0)