Changeset 425 for libmpc/trunk/libmpcdec/streaminfo.c
- Timestamp:
- 02/16/09 22:33:42 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/libmpcdec/streaminfo.c
r390 r425 51 51 "'BrainDead'", "'quality 9'", "'quality 10'" 52 52 }; 53 static const mpc_int32_t samplefreqs[ 4] = { 44100, 48000, 37800, 32000 };53 static const mpc_int32_t samplefreqs[8] = { 44100, 48000, 37800, 32000 }; 54 54 55 55 static const char * … … 97 97 } 98 98 99 static mpc_status check_streaminfo(mpc_streaminfo * si) 100 { 101 if (si->max_band == 0 || si->max_band > 32 102 || si->channels > 2) 103 return MPC_STATUS_FILE; 104 return MPC_STATUS_OK; 105 } 106 99 107 /// Reads streaminfo from SV7 header. 100 108 mpc_status … … 157 165 * si->sample_freq / si->samples; 158 166 159 return MPC_STATUS_OK;167 return check_streaminfo(si); 160 168 } 161 169 … … 206 214 * si->sample_freq / (si->samples - si->beg_silence); 207 215 208 return MPC_STATUS_OK;216 return check_streaminfo(si); 209 217 } 210 218
Note: See TracChangeset
for help on using the changeset viewer.