diff --git a/Source/MediaInfo/Audio/File_Mpega.cpp b/Source/MediaInfo/Audio/File_Mpega.cpp index ec552a9d3..e830d28b9 100644 --- a/Source/MediaInfo/Audio/File_Mpega.cpp +++ b/Source/MediaInfo/Audio/File_Mpega.cpp @@ -1435,7 +1435,19 @@ bool File_Mpega::Header_Encoders() Get_String (20, Encoded_Library, "Encoded_Library"); else Get_String ( 8, Encoded_Library, "Encoded_Library"); - Encoded_Library.erase(Encoded_Library.find_last_not_of("AU\xAA")+1); + // Keep only leading printable ASCII part + size_t End=0; + while (End=0x20 && C<=0x7E) + ++End; + else + break; + } + Encoded_Library.resize(End); + Encoded_Library.erase(Encoded_Library.find_last_not_of("AU")+1); // Clean LAME3.100AAAA...UUU + Element_Offset=0; //Reseting it return true; }