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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user