Commit f1982b08 authored by Georgi Chorbadzhiyski's avatar Georgi Chorbadzhiyski

mpeg/psi/descriptors: Add length and show desc id as hex in XML printer.

parent cc9231ee
...@@ -79,8 +79,8 @@ static inline void desc_print_begin(const uint8_t *p_desc, f_print pf_print, ...@@ -79,8 +79,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]); sprintf(psz_value + 2 * i, "%2.2hhx", p_desc[2 + i]);
psz_value[2 * i] = '\0'; psz_value[2 * i] = '\0';
pf_print(opaque, "<DESC id=\"%hhu\" value=\"%s\">", pf_print(opaque, "<DESC id=\"0x%02x\" length=\"%u\" value=\"%s\">",
desc_get_tag(p_desc), psz_value); desc_get_tag(p_desc), i_length, psz_value);
break; break;
} }
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment