@@ -63,7 +63,7 @@ def temp_video(num_frames, height, width, fps, lossless=False, video_codec=None,
63
63
64
64
65
65
@pytest .mark .skipif (
66
- get_video_backend () != "pyav" and not io ._HAS_VIDEO_OPT , reason = "video_reader backend not available"
66
+ get_video_backend () != "pyav" and not io ._HAS_CPU_VIDEO_DECODER , reason = "video_reader backend not available"
67
67
)
68
68
@pytest .mark .skipif (av is None , reason = "PyAV unavailable" )
69
69
class TestVideo :
@@ -77,14 +77,14 @@ def test_write_read_video(self):
77
77
assert_equal (data , lv )
78
78
assert info ["video_fps" ] == 5
79
79
80
- @pytest .mark .skipif (not io ._HAS_VIDEO_OPT , reason = "video_reader backend is not chosen" )
80
+ @pytest .mark .skipif (not io ._HAS_CPU_VIDEO_DECODER , reason = "video_reader backend is not chosen" )
81
81
def test_probe_video_from_file (self ):
82
82
with temp_video (10 , 300 , 300 , 5 ) as (f_name , data ):
83
83
video_info = io ._probe_video_from_file (f_name )
84
84
assert pytest .approx (2 , rel = 0.0 , abs = 0.1 ) == video_info .video_duration
85
85
assert pytest .approx (5 , rel = 0.0 , abs = 0.1 ) == video_info .video_fps
86
86
87
- @pytest .mark .skipif (not io ._HAS_VIDEO_OPT , reason = "video_reader backend is not chosen" )
87
+ @pytest .mark .skipif (not io ._HAS_CPU_VIDEO_DECODER , reason = "video_reader backend is not chosen" )
88
88
def test_probe_video_from_memory (self ):
89
89
with temp_video (10 , 300 , 300 , 5 ) as (f_name , data ):
90
90
with open (f_name , "rb" ) as fp :
0 commit comments