#15 MP3val deletes ID3v2 Tags

closed
nobody
None
5
2009-06-25
2009-01-04
Anonymous
No

ID3v2 Tags are deleted if the first frame after the ID3v2 Tag is invalid (no MP3 header found after ID3-Tag). I solved the problem by setting iPrevSize to Zero after writing the Tag. Therefor I made the folloging changes:

out.cpp add after line 30:
void SetLastFrameSize(int size) {
iPrevSize=0;
}

out.h add after line 23:
void SetLastFrameSize(int size);

mpegparce.cpp add after line 81:
SetLastFrameSize(0);

I hope somebody can verify it and add the changes to the source code.

rwg

Discussion

  • Nobody/Anonymous

    I found out, that mp3val upon repair did remove many of the GAIN tags (which I had added with mp3gain before) thus corrupting the files. I did not check about other id3v2 tags though.
    When I run mp3val to correct the files and then apply mp3gain afterwards it works.

     
  • Alexey Kuznetsov

    must be fixed in 0.1.8 release

     
  • Alexey Kuznetsov

    • status: open --> closed
     

Log in to post a comment.