nit: fix invalid "transport_descriptors_length"
[email protected] (Mélanie Benoit) Wed, 11 Feb 2015 13:21:12 +0100 (CET)
| Newsgroups | gmane.comp.video.videolan.libdvbpsi.devel |
|---|---|
| Message-ID | <[email protected]> |
libdvbpsi | branch: master | Mélanie Benoit <[email protected]> | 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 <[email protected]> > 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; _______________________________________________ libdvbpsi-devel mailing list [email protected] https://mailman.videolan.org/listinfo/libdvbpsi-devel