From 5db81d9e4f43f25d78d803725137cbfe20171343 Mon Sep 17 00:00:00 2001 From: Jeremy Poulter Date: Thu, 18 Oct 2012 13:13:38 +0300 Subject: [PATCH] Implement support for private data specifier 0x233a for desc 0x83. I have been looking at implementing support for parsing the LCN descriptor for UK DVB-T and to my supprise most of it was already there but for a different standard. In the D-Book LCN is tag 0x83 with private data specifier of 0x233a where as what is currently implented is the IEC/CENELEC 62 216 standard where the only difference (in the actual data) is the latter has 1 bit that specifies if the channel is vissible or not and the private data specifier is 0x0028. --- dvb/si/desc_83p28.h | 2 +- mpeg/psi/descs_print.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dvb/si/desc_83p28.h b/dvb/si/desc_83p28.h index 7adf7cc..d416b42 100644 --- a/dvb/si/desc_83p28.h +++ b/dvb/si/desc_83p28.h @@ -103,7 +103,7 @@ static inline void desc83p28_print(uint8_t *p_desc, f_print pf_print, break; default: pf_print(opaque, - " - desc %hhu lcn sid=%hu%s lcn=%hu", desc_get_tag(p_desc), + " - desc %hhx lcn sid=%hu%s lcn=%hu", desc_get_tag(p_desc), desc83p28n_get_sid(p_desc_n), desc83p28n_get_visible(p_desc_n) ? " visible" : "", desc83p28n_get_lcn(p_desc_n)); diff --git a/mpeg/psi/descs_print.h b/mpeg/psi/descs_print.h index a568e4e..b8d8e43 100644 --- a/mpeg/psi/descs_print.h +++ b/mpeg/psi/descs_print.h @@ -55,8 +55,8 @@ static inline void descl_print(uint8_t *p_descl, uint16_t i_length, j++; desc_print_begin(p_desc, pf_print, print_opaque, i_print_type); - - if (i_private_data_specifier == 0x28) { + if (i_private_data_specifier == 0x28 || + i_private_data_specifier == 0x233a) { /* EICTA */ switch (i_tag) { #define CASE_DESC(id) \