[bTSstream-devel] [Git][videolan/bitstream][master] 2 commits: desc_05: fix invalid XML characters
Christophe Massiot (@cmassiot)
gitlab at videolan.org
Mon Jan 26 16:18:32 UTC 2026
Christophe Massiot pushed to branch master at VideoLAN / bitstream
Commits:
6fb1ddeb by Clément Vasseur at 2026-01-26T17:05:35+01:00
desc_05: fix invalid XML characters
- - - - -
517bf90c by Christophe Massiot at 2026-01-26T17:18:23+01:00
Merge branch 'nto-desc-05-xml-escape'
- - - - -
1 changed file:
- mpeg/psi/desc_05.h
Changes:
=====================================
mpeg/psi/desc_05.h
=====================================
@@ -74,10 +74,16 @@ static inline void desc05_print(const uint8_t *p_desc, f_print pf_print,
void *opaque, print_type_t i_print_type)
{
switch (i_print_type) {
- case PRINT_XML:
- pf_print(opaque, "<REGISTRATION_DESC identifier=\"%4.4s\"/>",
- desc05_get_identifier(p_desc));
+ case PRINT_XML: {
+ char identifier[5];
+ memcpy(identifier, desc05_get_identifier(p_desc), 4);
+ identifier[4] = '\0';
+ char *identifier_xml = bitstream_xml_escape(identifier);
+ pf_print(opaque, "<REGISTRATION_DESC identifier=\"%s\"/>",
+ identifier_xml ?: "");
+ free(identifier_xml);
break;
+ }
default:
pf_print(opaque, " - desc 05 registration identifier=%4.4s",
desc05_get_identifier(p_desc));
View it on GitLab: https://code.videolan.org/videolan/bitstream/-/compare/41240764d2ce9fdd228c17401f10a30e2105bdbb...517bf90cd1f30a55e8fd0538ee3c69b6c8ad3dcd
--
View it on GitLab: https://code.videolan.org/videolan/bitstream/-/compare/41240764d2ce9fdd228c17401f10a30e2105bdbb...517bf90cd1f30a55e8fd0538ee3c69b6c8ad3dcd
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the biTStream-devel
mailing list