Skip to content

Commit

Permalink
Merge pull request #2072 from JeromeMartinez/Conformance_SubElements
Browse files Browse the repository at this point in the history
Conformance checker: an element is indicated bigger than its upper element, fix
  • Loading branch information
JeromeMartinez authored Jun 13, 2024
2 parents 6fc649f + 6e83f5d commit 0dad476
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Source/MediaInfo/Multiple/File_Mpeg4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3008,10 +3008,13 @@ string File_Mpeg4::CreateElementName()
string Result;
for (size_t i = 1; i < Element_Level; i++) {
Result += Ztring().From_CC4(Element[i].Code).Trim().To_UTF8();
if (Result.back() >= '0' && Result.back() <= '9') {
if (Result.empty()) {
Result = "0x20202020"; // Full of spaces
}
else if (Result.back() >= '0' && Result.back() <= '9') {
Result += '_';
}
Result += __T(' ');
Result += ' ';
}
if (!Result.empty())
Result.pop_back();
Expand Down

0 comments on commit 0dad476

Please sign in to comment.