obs-ffmpeg: Fix AMD falling back to wrong preset
If the API to query the maximum throughput isn't available, it was intended to fall back to balanced. This code caused it to vall back to speed instead because if the API isn't available, max_throughput will be 0. This fixes it to make it only fall back to balanced instead.
This commit is contained in:
parent
d68539e267
commit
f6f6690ccf
@ -422,7 +422,7 @@ static inline void check_preset_compatibility(amf_base *enc,
|
||||
if (astrcmpi(preset, "balanced") == 0) {
|
||||
amf_int64 req_throughput =
|
||||
enc->throughput * throughput_balanced_mul / 10;
|
||||
if (enc->max_throughput < req_throughput)
|
||||
if (enc->max_throughput && enc->max_throughput < req_throughput)
|
||||
preset = "speed";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user