Fix CPU usage descripting mapping. Fixes #2682

This commit is contained in:
Gabe Kangas
2023-02-22 21:56:55 -08:00
parent e90da6c756
commit 701e57a580
3 changed files with 13 additions and 11 deletions

View File

@@ -159,8 +159,8 @@ export const VideoVariantForm: FC<VideoVariantFormProps> = ({
<Slider
tipFormatter={value => ENCODER_PRESET_TOOLTIPS[value]}
onChange={handleVideoCpuUsageLevelChange}
min={1}
max={Object.keys(ENCODER_PRESET_SLIDER_MARKS).length}
min={0}
max={Object.keys(ENCODER_PRESET_SLIDER_MARKS).length - 1}
marks={ENCODER_PRESET_SLIDER_MARKS}
defaultValue={dataState.cpuUsageLevel}
value={dataState.cpuUsageLevel}