[libdvbpsi-devel] nit: fix invalid "transport_descriptors_length"
Mélanie Benoit
git at videolan.org
Wed Feb 11 13:21:12 CET 2015
libdvbpsi | branch: master | Mélanie Benoit <mbenoit at anevia.com> | Tue Feb 10 11:45:23 2015 +0100| [463954ebad4af74f68efb79d38848ecc174b9252] | committer: 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: Jean-Paul Saman <jpsaman at videolan.org>
> http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=463954ebad4af74f68efb79d38848ecc174b9252
---
src/tables/nit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tables/nit.c b/src/tables/nit.c
index c4bca0b..9522d5f 100644
--- a/src/tables/nit.c
+++ b/src/tables/nit.c
@@ -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;
More information about the libdvbpsi-devel
mailing list