Skip to content

Commit bbad535

Browse files
committed
Add device param
1 parent 8b4dd51 commit bbad535

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/decoders/test_video_decoder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,12 +427,12 @@ def test_get_frame_played_at(self, device):
427427
assert isinstance(decoder.get_frame_played_at(6.02).duration_seconds, float)
428428

429429
@pytest.mark.parametrize("device", cpu_and_cuda())
430-
def test_get_frame_played_at_h265(self):
430+
def test_get_frame_played_at_h265(self, device):
431431
# Non-regression test for https://github.com/pytorch/torchcodec/issues/179
432432
# We don't parametrize with CUDA because the current GPUs on CI do not
433433
# support x265:
434434
# https://github.com/pytorch/torchcodec/pull/350#issuecomment-2465011730
435-
decoder = VideoDecoder(H265_VIDEO.path)
435+
decoder = VideoDecoder(H265_VIDEO.path, device=device)
436436
ref_frame6 = H265_VIDEO.get_frame_data_by_index(5)
437437
assert_frames_equal(ref_frame6, decoder.get_frame_played_at(0.5).data)
438438

0 commit comments

Comments
 (0)