Skip to content

Commit b0de666

Browse files
authored
[codemod] Remove unused-variable in pytorch/hiveio/hiveio_writer.cpp +3
Differential Revision: D66464240 Pull Request resolved: #418
1 parent 2bbccbf commit b0de666

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/torchcodec/decoders/_core/VideoDecoder.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,6 @@ void VideoDecoder::maybeSeekToBeforeDesiredPts() {
736736

737737
VideoDecoder::RawDecodedOutput VideoDecoder::getDecodedOutputWithFilter(
738738
std::function<bool(int, AVFrame*)> filterFunction) {
739-
auto start = std::chrono::high_resolution_clock::now();
740739
if (activeStreamIndices_.size() == 0) {
741740
throw std::runtime_error("No active streams configured.");
742741
}
@@ -745,7 +744,6 @@ VideoDecoder::RawDecodedOutput VideoDecoder::getDecodedOutputWithFilter(
745744
maybeSeekToBeforeDesiredPts();
746745
maybeDesiredPts_ = std::nullopt;
747746
}
748-
auto seekDone = std::chrono::high_resolution_clock::now();
749747
// Need to get the next frame or error from PopFrame.
750748
UniqueAVFrame frame(av_frame_alloc());
751749
int ffmpegStatus = AVSUCCESS;
@@ -835,7 +833,6 @@ VideoDecoder::RawDecodedOutput VideoDecoder::getDecodedOutputWithFilter(
835833
"Could not receive frame from decoder: " +
836834
getFFMPEGErrorStringFromErrorCode(ffmpegStatus));
837835
}
838-
auto decodeDone = std::chrono::high_resolution_clock::now();
839836
// Note that we don't flush the decoder when we reach EOF (even though that's
840837
// mentioned in https://ffmpeg.org/doxygen/trunk/group__lavc__encdec.html).
841838
// This is because we may have packets internally in the decoder that we

0 commit comments

Comments
 (0)