parent
f9908362f8
commit
dd935f6dc3
|
@ -216,7 +216,7 @@ bool TtmlGenerator::ConvertFragmentToXml(const TextFragment& body,
|
|||
std::string id = "img_" + std::to_string(++*image_count);
|
||||
|
||||
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("xml:id", id));
|
||||
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"
|
||||
" <head/>\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"
|
||||
" </metadata>\n"
|
||||
" <body>\n"
|
||||
|
|
Loading…
Reference in New Issue