Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dvb: add compensation for maximal frequency delta based on SR
  • Loading branch information
perexg committed Jun 8, 2016
1 parent 7b28d75 commit d6bda75
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/input/mpegts/mpegts_network_dvb.c
Expand Up @@ -520,11 +520,17 @@ dvb_network_find_mux
/* if ONID/TSID are a perfect match (and this is DVB-S, allow greater deltaf) */
if (lm->lm_tuning.dmc_fe_type == DVB_TYPE_S) {
deltar = 10000;
if (onid != MPEGTS_ONID_NONE && tsid != MPEGTS_TSID_NONE)
if (onid != MPEGTS_ONID_NONE && tsid != MPEGTS_TSID_NONE) {
deltaf = 16000; // This is slightly crazy, but I have seen 10MHz changes in freq
// and remember the ONID and TSID must agree
else
} else {
/* the freq. changes for lower symbol rates might be smaller */
if (dmc->u.dmc_fe_qpsk.symbol_rate < 5000000)
deltaf = 1900;
if (dmc->u.dmc_fe_qpsk.symbol_rate < 10000000)
deltaf = 2900;
deltaf = 4000;
}
}

/* Reject if not same frequency (some tolerance due to changes and diff in NIT) */
Expand Down

0 comments on commit d6bda75

Please sign in to comment.