Skip to content

Commit

Permalink
Merge pull request #756 from JeromeMartinez/FieldNames
Browse files Browse the repository at this point in the history
Field names must be with 7-bit codes
  • Loading branch information
JeromeMartinez authored Dec 19, 2017
2 parents 86ccae6 + 4a4bd89 commit 8ffafbd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Source/MediaInfo/Multiple/File_Mpeg4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2699,6 +2699,15 @@ File_Mpeg4::method File_Mpeg4::Metadata_Get(std::string &Parameter, int64u Meta)
Value.append(1, (Char)((Meta&0x000000FF)>> 0));
if (MediaInfoLib::Config.CustomMapping_IsPresent(__T("MP4"), Value))
Parameter=MediaInfoLib::Config.CustomMapping_Get(__T("MP4"), Value).To_Local();

//Cleanup of the parameter, removing anything not ANSI 7-bit
for (size_t i=0; i<Parameter.size();)
{
if (((int8s)Parameter[i])<0)
Parameter.erase(i, 1);
else
i++;
}

return Method;
}
Expand Down

0 comments on commit 8ffafbd

Please sign in to comment.