diff --git a/ffmpeg/tests/test_ffmpeg.py b/ffmpeg/tests/test_ffmpeg.py index 086a980..224dfaf 100644 --- a/ffmpeg/tests/test_ffmpeg.py +++ b/ffmpeg/tests/test_ffmpeg.py @@ -740,6 +740,13 @@ def test__build_data(): assert isinstance(data['protocols'][protocol_key], list) +def test__detect(): + for hwaccels in [ + ffmpeg.detect_hwaccels(), + ffmpeg.detect_hwaccels(['foohwaccel'])]: + assert isinstance(hwaccels, list) + + def get_filter_complex_input(flt, name): m = re.search(r'\[([^]]+)\]{}(?=[[;]|$)'.format(name), flt) if m: