Fix spacing

This commit is contained in:
Nick Mowen 2022-12-30 10:14:35 -07:00
parent fce413b5f5
commit 676986ed6e

View File

@ -230,6 +230,7 @@ PRESETS_HW_ACCEL_ENCODE = {
],
}
def parse_preset_hardware_acceleration_decode(arg: Any) -> list[str]:
"""Return the correct preset if in preset format otherwise return None."""
if not isinstance(arg, str):
@ -237,6 +238,7 @@ def parse_preset_hardware_acceleration_decode(arg: Any) -> list[str]:
return PRESETS_HW_ACCEL_DECODE.get(arg, None)
def parse_preset_hardware_acceleration_scale(
arg: Any,
detect_args: list[str],
@ -256,6 +258,7 @@ def parse_preset_hardware_acceleration_scale(
scale[1] = scale[1].format(fps, width, height)
return scale
def parse_preset_hardware_acceleration_encode(arg: Any) -> list[str]:
"""Return the correct scaling preset or default preset if none is set."""
if not isinstance(arg, str):
@ -263,6 +266,7 @@ def parse_preset_hardware_acceleration_encode(arg: Any) -> list[str]:
return PRESETS_HW_ACCEL_ENCODE.get(arg, PRESETS_HW_ACCEL_ENCODE["default"])
PRESETS_INPUT = {
"preset-http-jpeg-generic": _user_agent_args
+ [