Skip to content

ID3v2: Remove invalid padding on write #262

Open
@Serial-ATA

Description

@Serial-ATA

It's a common issue that padding will often stick around between tag edits, as it is typically not properly accounted for in the tag header size.

We currently just get the tag size from the header and replace that many bytes with the new tag when writing, similar to other libraries. The problem is, when a tag has invalid padding that isn't included in the size, it will remain in the file indefinitely.

It may be worth removing the padding if we can reliably detect it without destroying any important data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlow prioritySomething that is at least planned, but likely will not be worked on soon.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions