diff --git a/src/torchcodec/decoders/_core/VideoDecoder.cpp b/src/torchcodec/decoders/_core/VideoDecoder.cpp index b20a5e547..4867c90a7 100644 --- a/src/torchcodec/decoders/_core/VideoDecoder.cpp +++ b/src/torchcodec/decoders/_core/VideoDecoder.cpp @@ -835,10 +835,6 @@ VideoDecoder::RawDecodedOutput VideoDecoder::getDecodedOutputWithFilter( StreamInfo& activeStream = streams_[frameStreamIndex]; activeStream.currentPts = frame->pts; activeStream.currentDuration = getDuration(frame); - auto startToSeekDone = - std::chrono::duration_cast(seekDone - start); - auto seekToDecodeDone = std::chrono::duration_cast( - decodeDone - seekDone); RawDecodedOutput rawOutput; rawOutput.streamIndex = frameStreamIndex; rawOutput.frame = std::move(frame); @@ -1390,7 +1386,6 @@ torch::Tensor VideoDecoder::convertFrameToTensorUsingFilterGraph( }; torch::Tensor tensor = torch::from_blob( filteredFramePtr->data[0], shape, strides, deleter, {torch::kUInt8}); - StreamInfo& activeStream = streams_[streamIndex]; return tensor; }