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:
Josh Coalson
2004-09-10 00:38:21 +00:00
parent 10c6f0fef4
commit 69cfda7a20
16 changed files with 196 additions and 59 deletions

View File

@@ -34,6 +34,13 @@
#include "FLAC/ordinals.h"
/** The length of the 'FLAC' magic in bytes. */
#define OggFLAC__MAPPING_PACKET_TYPE_LENGTH (1u)
extern const unsigned OggFLAC__MAPPING_PACKET_TYPE_LEN; /* = 8 bits */
extern const FLAC__byte OggFLAC__MAPPING_FIRST_HEADER_PACKET_TYPE; /* = 0x7f */
/** The length of the 'FLAC' magic in bytes. */
#define OggFLAC__MAPPING_MAGIC_LENGTH (4u)
@@ -48,4 +55,9 @@ extern const unsigned OggFLAC__MAPPING_VERSION_MINOR_LEN; /* = 8 bits */
/** The length of the Ogg FLAC mapping minor version number in bytes. */
#define OggFLAC__MAPPING_VERSION_MINOR_LENGTH (1u)
extern const unsigned OggFLAC__MAPPING_NUM_HEADERS_LEN; /* = 16 bits */
/** The length of the #-of-header-packets number bytes. */
#define OggFLAC__MAPPING_NUM_HEADERS_LENGTH (2u)
#endif