|
@@ -454,12 +454,12 @@ static inline void check_preset_compatibility(amf_base *enc,
|
|
* throughput, switch to a lower preset. */
|
|
* throughput, switch to a lower preset. */
|
|
|
|
|
|
if (astrcmpi(preset, "highQuality") == 0) {
|
|
if (astrcmpi(preset, "highQuality") == 0) {
|
|
- if (enc->max_throughput - enc->requested_throughput <
|
|
|
|
- enc->throughput) {
|
|
|
|
|
|
+ if (!enc->max_throughput) {
|
|
preset = "quality";
|
|
preset = "quality";
|
|
set_opt(QUALITY_PRESET, get_preset(enc, preset));
|
|
set_opt(QUALITY_PRESET, get_preset(enc, preset));
|
|
} else {
|
|
} else {
|
|
- if (enc->max_throughput < enc->throughput) {
|
|
|
|
|
|
+ if (enc->max_throughput - enc->requested_throughput <
|
|
|
|
+ enc->throughput) {
|
|
preset = "quality";
|
|
preset = "quality";
|
|
refresh_throughput_caps(enc, preset);
|
|
refresh_throughput_caps(enc, preset);
|
|
}
|
|
}
|