Skip to content

Commit

Permalink
obs-nvenc: Correct max target quality for AV1
Browse files Browse the repository at this point in the history
  • Loading branch information
Bleuzen authored and RytoEX committed Feb 7, 2025
1 parent e471d31 commit 05c2f56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/obs-nvenc/nvenc-properties.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ obs_properties_t *nvenc_properties_internal(enum codec_type codec)
p = obs_properties_add_int(props, "bitrate", obs_module_text("Bitrate"), 50, UINT32_MAX / 1000, 50);
obs_property_int_set_suffix(p, " Kbps");

obs_properties_add_int(props, "target_quality", obs_module_text("TargetQuality"), 1, 51, 1);
obs_properties_add_int(props, "target_quality", obs_module_text("TargetQuality"), 1,
codec == CODEC_AV1 ? 63 : 51, 1);

p = obs_properties_add_int(props, "max_bitrate", obs_module_text("MaxBitrate"), 0, UINT32_MAX / 1000, 50);
obs_property_int_set_suffix(p, " Kbps");
Expand Down

0 comments on commit 05c2f56

Please sign in to comment.