[bTSstream-devel] fix bad printing of vbi & telx descriptors

Christophe Massiot git at videolan.org
Sun Dec 6 02:21:55 CET 2015


bitstream | branch: master | Christophe Massiot <cmassiot at openheadend.tv> | Sun Dec  6 02:21:36 2015 +0100| [70516b167534691d73ff99e3b61cc5f61135013b] | committer: Christophe Massiot

fix bad printing of vbi & telx descriptors

> http://git.videolan.org/gitweb.cgi/bitstream.git/?a=commit;h=70516b167534691d73ff99e3b61cc5f61135013b
---

 dvb/si/desc_46.h                 |    4 ++--
 examples/dvb_print_si.output.txt |   12 ++++++------
 examples/dvb_print_si.output.xml |   12 ++++++------
 3 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/dvb/si/desc_46.h b/dvb/si/desc_46.h
index 240b129..f4a2170 100644
--- a/dvb/si/desc_46.h
+++ b/dvb/si/desc_46.h
@@ -131,7 +131,7 @@ static inline void desc46_print(uint8_t *p_desc, f_print pf_print,
         switch (i_print_type) {
         case PRINT_XML:
             pf_print(opaque,
-                 "<%s language=\"%3.3s\" type=\"0x%hhx\" type_txt=\"%s\" mag=\"%hhu\" page=\"0x%hhux\"/>",
+                 "<%s language=\"%3.3s\" type=\"0x%hhx\" type_txt=\"%s\" mag=\"%hhu\" page=\"0x%hhx\"/>",
                  desc_get_tag(p_desc) == 0x46 ? "VBI_TELX_DESC" : "TELX_DESC",
                  (const char *)desc46n_get_code(p_desc_n),
                  desc46n_get_teletexttype(p_desc_n),
@@ -141,7 +141,7 @@ static inline void desc46_print(uint8_t *p_desc, f_print pf_print,
             break;
         default:
             pf_print(opaque,
-                 "    - desc %x %s language=%3.3s type=0x%hhx type_txt=\"%s\" mag=%hhu page=0x%hhux",
+                 "    - desc %x %s language=%3.3s type=0x%hhx type_txt=\"%s\" mag=%hhu page=0x%hhx",
                  desc_get_tag(p_desc),
                  desc_get_tag(p_desc) == 0x46 ? "vbi_telx" : "telx",
                  (const char *)desc46n_get_code(p_desc_n),
diff --git a/examples/dvb_print_si.output.txt b/examples/dvb_print_si.output.txt
index 7b2cd5a..0b9af68 100644
--- a/examples/dvb_print_si.output.txt
+++ b/examples/dvb_print_si.output.txt
@@ -247,9 +247,9 @@ new PMT program=20000 version=1 pcrpid=110
     - desc 7a ac3 component_type_flag=1 component_type=10 bsid_flag=1 bsid=20 mainid_flag=1 mainid=30 asvc_flag=1 asvc=40 mixinfoexists=1 substream1_flag=1 substream1=50 substream2_flag=1 substream2=60 substream3_flag=1 substream3=70
     - desc 7b dts sample_rate_code=8 bit_rate_code=11 nblks=5 fsize=95 surround_mode=3 lfe_flag=1 extended_surround_flag=2
   * ES pid=122 streamtype=0x06 streamtype_txt="13818-1 PES private data"
-    - desc 46 vbi_telx language=eng type=0x1 type_txt="Initial teletext page" mag=3 page=0x255x
-    - desc 46 vbi_telx language=bul type=0x2 type_txt="Teletext subtitle page" mag=2 page=0x127x
-    - desc 46 vbi_telx language=fre type=0x3 type_txt="Additional information page" mag=1 page=0x64x
+    - desc 46 vbi_telx language=eng type=0x1 type_txt="Initial teletext page" mag=3 page=0xff
+    - desc 46 vbi_telx language=bul type=0x2 type_txt="Teletext subtitle page" mag=2 page=0x7f
+    - desc 46 vbi_telx language=fre type=0x3 type_txt="Additional information page" mag=1 page=0x40
     - desc 45 vbi_data service_id=0x01 length=8 service_txt="EBU teletext"
         - vbi_data field_parity=1 line_offset=0
         - vbi_data field_parity=0 line_offset=1
@@ -273,9 +273,9 @@ new PMT program=20000 version=1 pcrpid=110
         - vbi_data field_parity=1 line_offset=23
     - desc 45 vbi_data service_id=0x06 length=0 service_txt="Closed Captioning"
   * ES pid=123 streamtype=0x06 streamtype_txt="13818-1 PES private data"
-    - desc 56 telx language=eng type=0x1 type_txt="Initial teletext page" mag=3 page=0x255x
-    - desc 56 telx language=bul type=0x2 type_txt="Teletext subtitle page" mag=2 page=0x127x
-    - desc 56 telx language=fre type=0x3 type_txt="Additional information page" mag=1 page=0x64x
+    - desc 56 telx language=eng type=0x1 type_txt="Initial teletext page" mag=3 page=0xff
+    - desc 56 telx language=bul type=0x2 type_txt="Teletext subtitle page" mag=2 page=0x7f
+    - desc 56 telx language=fre type=0x3 type_txt="Additional information page" mag=1 page=0x40
     - desc 60 service_move new_onid=10000 new_tsid=15000 new_service_id=20000
     - desc 65 scrambling scrambling_mode=0x01 scrambling_mode_txt="DVB-CSA1"
   * ES pid=124 streamtype=0x06 streamtype_txt="13818-1 PES private data"
diff --git a/examples/dvb_print_si.output.xml b/examples/dvb_print_si.output.xml
index 9de4947..62da99a 100644
--- a/examples/dvb_print_si.output.xml
+++ b/examples/dvb_print_si.output.xml
@@ -445,9 +445,9 @@
 </ES>
 <ES pid="122" streamtype="0x06" streamtype_txt="13818-1 PES private data">
 <DESC id="0x46" length="15" value="656e670bff62756c127f6672651940">
-<VBI_TELX_DESC language="eng" type="0x1" type_txt="Initial teletext page" mag="3" page="0x255x"/>
-<VBI_TELX_DESC language="bul" type="0x2" type_txt="Teletext subtitle page" mag="2" page="0x127x"/>
-<VBI_TELX_DESC language="fre" type="0x3" type_txt="Additional information page" mag="1" page="0x64x"/>
+<VBI_TELX_DESC language="eng" type="0x1" type_txt="Initial teletext page" mag="3" page="0xff"/>
+<VBI_TELX_DESC language="bul" type="0x2" type_txt="Teletext subtitle page" mag="2" page="0x7f"/>
+<VBI_TELX_DESC language="fre" type="0x3" type_txt="Additional information page" mag="1" page="0x40"/>
 </DESC>
 <DESC id="0x45" length="27" value="0108e0c1e2c3e4c5e6c70304123456780401ca0504d4f5d6f70600">
 <VBI_DATA_DESC>
@@ -483,9 +483,9 @@
 </ES>
 <ES pid="123" streamtype="0x06" streamtype_txt="13818-1 PES private data">
 <DESC id="0x56" length="15" value="656e670bff62756c127f6672651940">
-<TELX_DESC language="eng" type="0x1" type_txt="Initial teletext page" mag="3" page="0x255x"/>
-<TELX_DESC language="bul" type="0x2" type_txt="Teletext subtitle page" mag="2" page="0x127x"/>
-<TELX_DESC language="fre" type="0x3" type_txt="Additional information page" mag="1" page="0x64x"/>
+<TELX_DESC language="eng" type="0x1" type_txt="Initial teletext page" mag="3" page="0xff"/>
+<TELX_DESC language="bul" type="0x2" type_txt="Teletext subtitle page" mag="2" page="0x7f"/>
+<TELX_DESC language="fre" type="0x3" type_txt="Additional information page" mag="1" page="0x40"/>
 </DESC>
 <DESC id="0x60" length="6" value="27103a984e20">
 <SERVICE_MOVE_DESC new_onid="10000" new_tsid="15000" new_service_id="20000"/>



More information about the biTStream-devel mailing list