Changeset 201 for libmpc/branches/r2d/libmpcdec/streaminfo.c
- Timestamp:
- 01/20/07 21:43:42 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/branches/r2d/libmpcdec/streaminfo.c
r195 r201 54 54 55 55 static const char * 56 mpc_get_version_string( mpc_uint32_t profile) // profile is 0...15, where 7...13 is used57 { 58 return profile >= sizeof versionNames / sizeof *versionNames ? na : versionNames[profile];56 mpc_get_version_string(float profile) // profile is 0...15, where 7...13 is used 57 { 58 return profile >= sizeof versionNames / sizeof *versionNames ? na : versionNames[(int)profile]; 59 59 } 60 60 … … 109 109 si->max_band = mpc_bits_read(r, 6); 110 110 si->profile = mpc_bits_read(r, 4); 111 111 si->profile_name = mpc_get_version_string(si->profile); 112 112 mpc_bits_read(r, 2); // Link ? 113 113 si->sample_freq = samplefreqs[mpc_bits_read(r, 2)]; … … 195 195 mpc_bits_reader r = *r_in; 196 196 197 si->profile = mpc_bits_read(&r, 4);197 si->profile = mpc_bits_read(&r, 7) / 8.; 198 198 si->profile_name = mpc_get_version_string(si->profile); 199 199 si->pns = mpc_bits_read(&r, 1); 200 mpc_bits_read(&r, 3); // unused201 200 si->encoder_version = mpc_bits_read(&r, 4) << 24; // major 202 201 si->encoder_version |= mpc_bits_read(&r, 8) << 16; // minor
Note: See TracChangeset
for help on using the changeset viewer.