Commit 52c44e9a authored by Josh Coalson's avatar Josh Coalson
Browse files

shorten APPLICATION id to 32 bits

parent c91eca76
......@@ -522,7 +522,7 @@
</TR>
<TR>
<TD ALIGN="RIGHT" VALIGN="TOP" BGCOLOR="#F4F4CC">
&lt;128&gt;
&lt;32&gt;
</TD>
<TD>
Registered application ID
......
......@@ -345,17 +345,17 @@ typedef struct {
/*****************************************************************************
*
* 128: Registered application ID
* n: Application data
*-------- -----------------
* 16+n/8 bytes total
* 32: Registered application ID
* n: Application data
*------- -----------------
* 4+n/8 bytes total
*/
typedef struct {
byte id[16];
byte *data;
} FLAC__StreamMetaData_Application;
extern const unsigned FLAC__STREAM_METADATA_APPLICATION_ID_LEN; /* = 128 bits */
extern const unsigned FLAC__STREAM_METADATA_APPLICATION_ID_LEN; /* = 32 bits */
/*****************************************************************************
*
......@@ -371,6 +371,8 @@ typedef struct {
unsigned length; /* in bytes */
union {
FLAC__StreamMetaData_StreamInfo stream_info;
FLAC__StreamMetaData_Padding padding;
FLAC__StreamMetaData_Application application;
} data;
} FLAC__StreamMetaData;
......
......@@ -36,7 +36,7 @@ const unsigned FLAC__STREAM_METADATA_STREAMINFO_TOTAL_SAMPLES_LEN = 36; /* bits
const unsigned FLAC__STREAM_METADATA_STREAMINFO_MD5SUM_LEN = 128; /* bits */
const unsigned FLAC__STREAM_METADATA_STREAMINFO_LENGTH = 34; /* bytes */
const unsigned FLAC__STREAM_METADATA_APPLICATION_ID_LEN = 128; /* bits */
const unsigned FLAC__STREAM_METADATA_APPLICATION_ID_LEN = 32; /* bits */
const unsigned FLAC__STREAM_METADATA_IS_LAST_LEN = 1; /* bits */
const unsigned FLAC__STREAM_METADATA_TYPE_LEN = 7; /* bits */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment