INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Media Center adding \x00 to the end of all FLAC tags  (Read 1411 times)

bitterlogic

  • Recent member
  • *
  • Posts: 10
Media Center adding \x00 to the end of all FLAC tags
« on: January 03, 2011, 06:48:56 pm »

I have noticed that Media Center adds \x00 (null termination) to all tags in FLAC files. (After editing a file with MC all tags for the file will be "artist_name\x00", "album_name\x00" etc). This doesn't seem to affect anything (other programs handle it gracefully) however doing this is not in the FLAC spec. I am wondering why it does this?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: Media Center adding \x00 to the end of all FLAC tags
« Reply #1 on: January 03, 2011, 07:02:09 pm »

however doing this is not in the FLAC spec

I don't know what the spec says, although null terminating strings is a reasonable thing to do.

Could you post a link to the FLAC spec where it mentions you should not null terminate?

Thanks.
Logged
Matt Ashland, JRiver Media Center

bitterlogic

  • Recent member
  • *
  • Posts: 10
Re: Media Center adding \x00 to the end of all FLAC tags
« Reply #2 on: January 03, 2011, 08:59:31 pm »

http://www.xiph.org/vorbis/doc/v-comment.html
"The vector length is encoded; the vector contents themselves are not null terminated."

This is just referring to ogg vorbis but I believe the same is true with MC and those files.

Also referenced in the mutagen thread here: http://code.google.com/p/mutagen/issues/detail?id=23
Logged
Pages: [1]   Go Up