parent
f9908362f8
commit
dd935f6dc3
|
@ -216,7 +216,7 @@ bool TtmlGenerator::ConvertFragmentToXml(const TextFragment& body,
|
||||||
std::string id = "img_" + std::to_string(++*image_count);
|
std::string id = "img_" + std::to_string(++*image_count);
|
||||||
|
|
||||||
xml::XmlNode image_xml("smpte:image");
|
xml::XmlNode image_xml("smpte:image");
|
||||||
RCHECK(image_xml.SetStringAttribute("imagetype", "PNG"));
|
RCHECK(image_xml.SetStringAttribute("imageType", "PNG"));
|
||||||
RCHECK(image_xml.SetStringAttribute("encoding", "Base64"));
|
RCHECK(image_xml.SetStringAttribute("encoding", "Base64"));
|
||||||
RCHECK(image_xml.SetStringAttribute("xml:id", id));
|
RCHECK(image_xml.SetStringAttribute("xml:id", id));
|
||||||
image_xml.SetContent(base64_data);
|
image_xml.SetContent(base64_data);
|
||||||
|
|
|
@ -334,7 +334,7 @@ TEST_F(TtmlMuxerTest, HandlesImage) {
|
||||||
"xmlns:smpte=\"http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt\">\n"
|
"xmlns:smpte=\"http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt\">\n"
|
||||||
" <head/>\n"
|
" <head/>\n"
|
||||||
" <metadata>\n"
|
" <metadata>\n"
|
||||||
" <smpte:image imagetype=\"PNG\" encoding=\"Base64\" xml:id=\"img_1\">"
|
" <smpte:image imageType=\"PNG\" encoding=\"Base64\" xml:id=\"img_1\">"
|
||||||
"AQID</smpte:image>\n"
|
"AQID</smpte:image>\n"
|
||||||
" </metadata>\n"
|
" </metadata>\n"
|
||||||
" <body>\n"
|
" <body>\n"
|
||||||
|
|
Loading…
Reference in New Issue