[dvblast-devel] [PATCH-bitstream 1/2] mpeg/psi: Add descriptor length to XML descriptor tag.

Georgi Chorbadzhiyski gf at unixsol.org
Sat Sep 10 22:07:50 CEST 2011


---
 mpeg/psi.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mpeg/psi.h b/mpeg/psi.h
index ea3e974..eda3c45 100644
--- a/mpeg/psi.h
+++ b/mpeg/psi.h
@@ -68,8 +68,8 @@ static inline void desc_print_begin(const uint8_t *p_desc, f_print pf_print,
             sprintf(psz_value + 2 * i, "%2.2hhx", p_desc[2 + i]);
         psz_value[2 * i] = '\0';
 
-        pf_print(opaque, "<DESC id=\"%hhu\" value=\"%s\">",
-                 desc_get_tag(p_desc), psz_value);
+        pf_print(opaque, "<DESC id=\"%hhu\" length=\"%u\" value=\"%s\">",
+                 desc_get_tag(p_desc), i_length, psz_value);
         break;
     }
     default:
-- 
1.7.5.1



More information about the dvblast-devel mailing list