Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[codemod] Remove unused-variable in pytorch/hiveio/hiveio_writer.cpp +3 #418

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading