Skip to content

Commit c5e1bc3

Browse files
authored
Merge branch 'main' into addVideoStream
2 parents c5193a9 + a8299be commit c5e1bc3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/torchcodec/decoders/_core/VideoDecoderOps.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,6 @@ OpsFrameOutput get_next_frame(at::Tensor& decoder) {
236236
} catch (const VideoDecoder::EndOfFileException& e) {
237237
C10_THROW_ERROR(IndexError, e.what());
238238
}
239-
if (result.data.sizes().size() != 3) {
240-
throw std::runtime_error(
241-
"image_size is unexpected. Expected 3, got: " +
242-
std::to_string(result.data.sizes().size()));
243-
}
244239
return makeOpsFrameOutput(result);
245240
}
246241

0 commit comments

Comments
 (0)