mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
correct array access
This commit is contained in:
parent
774e92bd44
commit
de34e2ebbd
@ -673,6 +673,7 @@ static int GetBitErrorRateS(struct stv *state, u32 *BERNumerator,
|
|||||||
static u32 DVBS2_nBCH(enum DVBS2_ModCod ModCod, enum DVBS2_FECType FECType)
|
static u32 DVBS2_nBCH(enum DVBS2_ModCod ModCod, enum DVBS2_FECType FECType)
|
||||||
{
|
{
|
||||||
static u32 nBCH[][2] = {
|
static u32 nBCH[][2] = {
|
||||||
|
{ 0, 0}, /* dummy */
|
||||||
{16200, 3240}, /* QPSK_1_4, */
|
{16200, 3240}, /* QPSK_1_4, */
|
||||||
{21600, 5400}, /* QPSK_1_3, */
|
{21600, 5400}, /* QPSK_1_3, */
|
||||||
{25920, 6480}, /* QPSK_2_5, */
|
{25920, 6480}, /* QPSK_2_5, */
|
||||||
@ -705,7 +706,7 @@ static u32 DVBS2_nBCH(enum DVBS2_ModCod ModCod, enum DVBS2_FECType FECType)
|
|||||||
|
|
||||||
if (ModCod >= DVBS2_QPSK_1_4 &&
|
if (ModCod >= DVBS2_QPSK_1_4 &&
|
||||||
ModCod <= DVBS2_32APSK_9_10 && FECType <= DVBS2_16K)
|
ModCod <= DVBS2_32APSK_9_10 && FECType <= DVBS2_16K)
|
||||||
return nBCH[FECType][ModCod];
|
return nBCH[ModCod][FECType];
|
||||||
return 64800;
|
return 64800;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user