Skip to content

Commit

Permalink
[codemod] Remove unused-variable in pytorch/hiveio/hiveio_writer.cpp +3
Browse files Browse the repository at this point in the history
Differential Revision: D66464240

Pull Request resolved: #418
  • Loading branch information
r-barnes authored Dec 3, 2024
1 parent 2bbccbf commit b0de666
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/torchcodec/decoders/_core/VideoDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,6 @@ void VideoDecoder::maybeSeekToBeforeDesiredPts() {

VideoDecoder::RawDecodedOutput VideoDecoder::getDecodedOutputWithFilter(
std::function<bool(int, AVFrame*)> filterFunction) {
auto start = std::chrono::high_resolution_clock::now();
if (activeStreamIndices_.size() == 0) {
throw std::runtime_error("No active streams configured.");
}
Expand All @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b0de666

Please sign in to comment.