mirror of
https://github.com/kkroening/ffmpeg-python.git
synced 2025-08-07 18:39:47 +08:00
Detect: Add test for detecting hardware acceleration
This commit is contained in:
parent
fcaab4f368
commit
8c16c5242e
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user