Commit 7ed4cdf9 authored by Steinar H. Gunderson's avatar Steinar H. Gunderson Committed by Jean-Paul Saman

SDT: accept 0x46 table_id

The documentation states that both 0x42 (this transponder) and 0x46
(other transponder) tables are accepted, but the check is hard-coded
against 0x42. Make it accept both, in the style of the other decoders.
Signed-off-by: Jean-Paul Saman's avatarJean-Paul Saman <jpsaman@videolan.org>
parent 3d865a7a
......@@ -353,7 +353,11 @@ void dvbpsi_sdt_sections_gather(dvbpsi_t *p_dvbpsi,
assert(p_dvbpsi);
assert(p_dvbpsi->p_decoder);
if (!dvbpsi_CheckPSISection(p_dvbpsi, p_section, 0x42, "SDT decoder"))
const uint8_t i_table_id = (p_section->i_table_id == 0x42 ||
p_section->i_table_id == 0x46) ?
p_section->i_table_id : 0x42;
if (!dvbpsi_CheckPSISection(p_dvbpsi, p_section, i_table_id, "SDT decoder"))
{
dvbpsi_DeletePSISections(p_section);
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment