From b0de66677bac322e628f04ec90ddeeb0304c6abb Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Tue, 3 Dec 2024 13:03:16 -0500 Subject: [PATCH] [codemod] Remove unused-variable in pytorch/hiveio/hiveio_writer.cpp +3 Differential Revision: D66464240 Pull Request resolved: https://github.com/pytorch/torchcodec/pull/418 --- src/torchcodec/decoders/_core/VideoDecoder.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/torchcodec/decoders/_core/VideoDecoder.cpp b/src/torchcodec/decoders/_core/VideoDecoder.cpp index df8aaae3..a5e6d9bc 100644 --- a/src/torchcodec/decoders/_core/VideoDecoder.cpp +++ b/src/torchcodec/decoders/_core/VideoDecoder.cpp @@ -736,7 +736,6 @@ void VideoDecoder::maybeSeekToBeforeDesiredPts() { VideoDecoder::RawDecodedOutput VideoDecoder::getDecodedOutputWithFilter( std::function filterFunction) { - auto start = std::chrono::high_resolution_clock::now(); if (activeStreamIndices_.size() == 0) { throw std::runtime_error("No active streams configured."); } @@ -745,7 +744,6 @@ VideoDecoder::RawDecodedOutput VideoDecoder::getDecodedOutputWithFilter( maybeSeekToBeforeDesiredPts(); maybeDesiredPts_ = std::nullopt; } - auto seekDone = std::chrono::high_resolution_clock::now(); // Need to get the next frame or error from PopFrame. UniqueAVFrame frame(av_frame_alloc()); int ffmpegStatus = AVSUCCESS; @@ -835,7 +833,6 @@ VideoDecoder::RawDecodedOutput VideoDecoder::getDecodedOutputWithFilter( "Could not receive frame from decoder: " + getFFMPEGErrorStringFromErrorCode(ffmpegStatus)); } - auto decodeDone = std::chrono::high_resolution_clock::now(); // Note that we don't flush the decoder when we reach EOF (even though that's // mentioned in https://ffmpeg.org/doxygen/trunk/group__lavc__encdec.html). // This is because we may have packets internally in the decoder that we