@@ -440,7 +440,7 @@ void File_Ttml::Read_Buffer_Continue()
440
440
Fill (Stream_General, 0 , General_Format_Profile, " IMSC1" );
441
441
Fill (Stream_Text, 0 , Text_Format_Profile, " IMSC1" );
442
442
}
443
-
443
+ string Rosetta_Profile, Rosetta_Version;
444
444
445
445
tinyxml2::XMLElement* div =NULL ;
446
446
#if MEDIAINFO_EVENTS
@@ -660,12 +660,31 @@ void File_Ttml::Read_Buffer_Continue()
660
660
Fill (Stream_Text, 0 , " CaptionServiceName" , Attribute);
661
661
}
662
662
}
663
+ if (!strcmp (metadata_element->Value (), " rosetta:format" ))
664
+ {
665
+ for (auto format_element = metadata_element->FirstChild (); format_element; format_element = format_element->NextSiblingElement ())
666
+ {
667
+ Rosetta_Profile = format_element->Value ();
668
+ break ;
669
+ }
670
+ }
671
+ if (!strcmp (metadata_element->Value (), " rosetta:version" ))
672
+ {
673
+ for (auto format_element = metadata_element->FirstChild (); format_element; format_element = format_element->NextSiblingElement ())
674
+ {
675
+ Rosetta_Version = format_element->Value ();
676
+ break ;
677
+ }
678
+ }
663
679
}
664
680
}
665
681
}
666
682
}
667
683
}
668
684
685
+ if (!Rosetta_Profile.empty ())
686
+ Fill (Stream_Text, 0 , Text_Format_Profile, Rosetta_Profile + (Rosetta_Version.empty ()?string ():(' ' +Rosetta_Version)));
687
+
669
688
#if MEDIAINFO_DEMUX
670
689
Demux (Buffer, Buffer_Size, ContentType_MainStream);
671
690
#endif // MEDIAINFO_DEMUX
0 commit comments