Commit 463954eb authored by Mélanie Benoit's avatar Mélanie Benoit Committed by Jean-Paul Saman

nit: fix invalid "transport_descriptors_length"

NIT transport stream is composed of 6 bytes
- ts_id=2B
- network_id=2B
- reserved+ts_descr_loop=2B
Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent 162b9716
......@@ -687,7 +687,7 @@ dvbpsi_psi_section_t* dvbpsi_nit_sections_generate(dvbpsi_t *p_dvbpsi,
dvbpsi_error(p_dvbpsi, "NIT generator", "unable to carry all the TS descriptors");
/* TS_info_length */
i_ts_length = p_current->p_payload_end - p_ts_start - 5;
i_ts_length = p_current->p_payload_end - p_ts_start - 6;
p_ts_start[4] = (i_ts_length >> 8) | 0xf0;
p_ts_start[5] = i_ts_length;
......
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