mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
add new requirements to ogg mapping: vorbis comment block must come second after streaminfo; first packet must have a packet type byte of 0x7f; packet 0 version must be followed by a 2-byte count of the # of header packets
This commit is contained in:
@@ -880,6 +880,11 @@ FLAC_API FLAC__StreamEncoderState FLAC__stream_encoder_init(FLAC__StreamEncoder
|
||||
* Check to see if the supplied metadata contains a VORBIS_COMMENT;
|
||||
* if not, we will write an empty one (FLAC__add_metadata_block()
|
||||
* automatically supplies the vendor string).
|
||||
*
|
||||
* WATCHOUT: libOggFLAC depends on us to write this block after the
|
||||
* STREAMINFO since that's what the mapping requires. (In the case
|
||||
* that metadata_has_vorbis_comment it true it will have already
|
||||
* insured that the metadata list is properly ordered.)
|
||||
*/
|
||||
if(!metadata_has_vorbis_comment) {
|
||||
FLAC__StreamMetadata vorbis_comment;
|
||||
|
||||
Reference in New Issue
Block a user