From 5cc4e1f167e5eb9d6c5e5b08f4a65fb93ca877b7 Mon Sep 17 00:00:00 2001 From: Ahmad Sharif Date: Wed, 16 Oct 2024 08:09:32 -0700 Subject: [PATCH] . --- src/torchcodec/decoders/_core/VideoDecoder.cpp | 3 +-- src/torchcodec/decoders/_core/VideoDecoder.h | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/torchcodec/decoders/_core/VideoDecoder.cpp b/src/torchcodec/decoders/_core/VideoDecoder.cpp index bca593fb..58a605fd 100644 --- a/src/torchcodec/decoders/_core/VideoDecoder.cpp +++ b/src/torchcodec/decoders/_core/VideoDecoder.cpp @@ -980,8 +980,7 @@ void VideoDecoder::validateFrameIndex( VideoDecoder::DecodedOutput VideoDecoder::getFrameAtIndex( int streamIndex, - int64_t frameIndex, - std::optional t) { + int64_t frameIndex) { validateUserProvidedStreamIndex(streamIndex); validateScannedAllStreams("getFrameAtIndex"); diff --git a/src/torchcodec/decoders/_core/VideoDecoder.h b/src/torchcodec/decoders/_core/VideoDecoder.h index 38f26eb4..8535a61e 100644 --- a/src/torchcodec/decoders/_core/VideoDecoder.h +++ b/src/torchcodec/decoders/_core/VideoDecoder.h @@ -222,10 +222,7 @@ class VideoDecoder { // i.e. it will be returned when this function is called with seconds=5.0 or // seconds=5.999, etc. DecodedOutput getFrameDisplayedAtTimestampNoDemux(double seconds); - DecodedOutput getFrameAtIndex( - int streamIndex, - int64_t frameIndex, - std::optional t = std::nullopt); + DecodedOutput getFrameAtIndex(int streamIndex, int64_t frameIndex); struct BatchDecodedOutput { torch::Tensor frames; torch::Tensor ptsSeconds;