Commit 8999bc4d authored by Daniel Kamil Kozar's avatar Daniel Kamil Kozar Committed by Jean-Paul Saman

Set reserved bits to 1 when generating the cable delivery system descriptor

According to EN 300 468, 12 bits after the frequency field are reserved
for future use. Thus, they should be set to 1.

(cherry picked from commit 6e007df2f7eef82243974e3b619fe1c366a1b6a1)
Signed-off-by: Jean-Paul Saman's avatarJean-Paul Saman <jpsaman@videolan.org>
parent 785e32c9
......@@ -99,7 +99,9 @@ dvbpsi_descriptor_t * dvbpsi_GenCableDelivSysDr(
p_descriptor->p_data[1] = (p_decoded->i_frequency >> 16) & 0xff;
p_descriptor->p_data[2] = (p_decoded->i_frequency >> 8) & 0xff;
p_descriptor->p_data[3] = p_decoded->i_frequency & 0xff;
p_descriptor->p_data[5] = (p_decoded->i_fec_outer & 0x0f);
p_descriptor->p_data[4] = 0xff;
p_descriptor->p_data[5] = 0xf0
|(p_decoded->i_fec_outer & 0x0f);
p_descriptor->p_data[6] = (p_decoded->i_modulation);
p_descriptor->p_data[7] = (p_decoded->i_symbol_rate >> 20) & 0xff;
p_descriptor->p_data[8] = (p_decoded->i_symbol_rate >> 12) & 0xff;
......
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