mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-10-08 00:00:42 -04:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user