moddatv: Avoid using unset FEC rate variables

Handle unsupported DVB-S2 code rates in get_dvbs2_rate() instead of
using uninitialized FEC numerator and denominator values. Resolves
a compiler warning.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
This commit is contained in:
Robin Getz
2026-10-03 17:35:02 -04:00
parent 4ac89f7ed2
commit 8a7d5973ea
+2 -1
View File
@@ -486,7 +486,8 @@ double TSGenerator::get_dvbs2_rate(double symbol_rate, DATVModSettings::DATVModu
fec_den = 5.0;
break;
default:
return symbol_rate * (fec_num / fec_den); // others
qWarning("TSGenerator::get_dvbs2_rate: Unsupported DVB-S2 code rate");
return 0;
}
switch (modulation) {