File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments