Skip to content

Commit

Permalink
Remove unnecessary output check (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug authored Feb 11, 2025
1 parent 0f50aba commit a8299be
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/torchcodec/decoders/_core/VideoDecoderOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,6 @@ OpsFrameOutput get_next_frame(at::Tensor& decoder) {
} catch (const VideoDecoder::EndOfFileException& e) {
C10_THROW_ERROR(IndexError, e.what());
}
if (result.data.sizes().size() != 3) {
throw std::runtime_error(
"image_size is unexpected. Expected 3, got: " +
std::to_string(result.data.sizes().size()));
}
return makeOpsFrameOutput(result);
}

Expand Down

0 comments on commit a8299be

Please sign in to comment.