File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
src/torchcodec/decoders/_core Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ int64_t create_from_file_like(
3333
3434 auto avioContextHolder = std::make_unique<AVIOFileLikeContext>(file_like);
3535
36- VideoDecoder* decoder = new VideoDecoder (std::move (avioContextHolder), realSeek);
36+ VideoDecoder* decoder =
37+ new VideoDecoder (std::move (avioContextHolder), realSeek);
3738 return reinterpret_cast <int64_t >(decoder);
3839}
3940
Original file line number Diff line number Diff line change @@ -129,7 +129,9 @@ at::Tensor create_from_tensor(
129129 at::Tensor video_tensor,
130130 std::optional<std::string_view> seek_mode) {
131131 TORCH_CHECK (video_tensor.is_contiguous (), " video_tensor must be contiguous" );
132- TORCH_CHECK (video_tensor.scalar_type () == torch::kUInt8 , " video_tensor must be kUInt8" );
132+ TORCH_CHECK (
133+ video_tensor.scalar_type () == torch::kUInt8 ,
134+ " video_tensor must be kUInt8" );
133135 void * data = video_tensor.mutable_data_ptr ();
134136 size_t length = video_tensor.numel ();
135137
You can’t perform that action at this time.
0 commit comments