Skip to content

Commit

Permalink
MP4/M4A : Writing an additional field with a field code containing le…
Browse files Browse the repository at this point in the history
…ss than 4 characters doesn't corrupt the file anymore
  • Loading branch information
Zeugma440 committed Mar 27, 2024
1 parent 19a73d7 commit 10acf15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ATL/AudioData/IO/MP4.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1883,7 +1883,7 @@ private void writeTextFrame(BinaryWriter writer, string frameCode, string text)
if (!frameCode.StartsWith("WM/", StringComparison.OrdinalIgnoreCase))
{
// Non-Microsoft custom metadata
if (frameCode.Length > FieldCodeFixedLength)
if (frameCode.Length != FieldCodeFixedLength)
{
string[] frameCodeComponents = frameCode.Split(':');
string nmespace = DEFAULT_NAMESPACE;
Expand Down

0 comments on commit 10acf15

Please sign in to comment.