Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Do Flac files with VorbisComment have Framing bit ? (Read 3586 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Do Flac files with VorbisComment have Framing bit ?

Does a VorbisComment within a flac file have the framing bit at the end of the comment or is that only when it is used within Ogg, in the same way that the 'vorbis' is present in ogg vorbis but not flac. I ask because I have a flac file which I can read fine if I dont check for a framing bit but fails otherwise and Im not sure whther Im meant to check or not.

Do Flac files with VorbisComment have Framing bit ?

Reply #1
From my own experience, the length specified in METADATA_BLOCK_VORBIS_COMMENT's header matches that of its contents until the last user comment only. That leaves no room for a framing bit (that would need to be padded up to a byte btw).

Do Flac files with VorbisComment have Framing bit ?

Reply #2
I was going to say basically the same thing, skamp is correct.

Do Flac files with VorbisComment have Framing bit ?

Reply #3
From my own experience, the length specified in METADATA_BLOCK_VORBIS_COMMENT's header matches that of its contents until the last user comment only. That leaves no room for a framing bit (that would need to be padded up to a byte btw).


Thanks I think that is the case here, just so I'm 100% clear could I clarify does that mean there actually  is no framing byte, or that there is one but it is not included in the header length specified  in METADATA_BLOCK_VORBIS_COMMENT'

Do Flac files with VorbisComment have Framing bit ?

Reply #4
There is no framing byte.  If you check a typical file with a hex editor you can see that the next metadata block header starts immediately after the last byte of the last comment string.


Do Flac files with VorbisComment have Framing bit ?

Reply #6
was that framing bit always part of the spec?  I don't remember seeing that in 2002.