Skip to content

Commit 289e4ee

Browse files
committed
remove cmake changes
1 parent a0f594e commit 289e4ee

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/torchcodec/_core/CudaDeviceInterface.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,12 +355,10 @@ std::optional<const AVCodec*> CudaDeviceInterface::findEncoder(
355355
if (codec->id != codecId || !av_codec_is_encoder(codec)) {
356356
continue;
357357
}
358-
359358
if (codecSupportsCudaHardware(codec)) {
360359
return codec;
361360
}
362361
}
363-
364362
return std::nullopt;
365363
}
366364

test/test_ops.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,6 @@ def get_encoded_data(self):
13931393
)
13941394
decoded_samples = self.decode(file_like.get_encoded_data())
13951395

1396-
ffmpeg_version = get_ffmpeg_major_version()
13971396
if device == "cuda":
13981397
atol = 15
13991398
percentage = 98
@@ -1423,8 +1422,6 @@ def test_to_file_like_real_file(self, tmp_path, device):
14231422
)
14241423
decoded_samples = self.decode(str(file_path))
14251424

1426-
# Use adaptive tolerance based on device and FFmpeg version, consistent with test_video_encoder_round_trip
1427-
ffmpeg_version = get_ffmpeg_major_version()
14281425
if device == "cuda":
14291426
atol = 15
14301427
percentage = 98

0 commit comments

Comments
 (0)