diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-08-12 19:10:16 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-08-12 19:10:16 +0200 |
commit | 87988d15e0d4ebb7f704927d9c0e53c6e18eb087 (patch) | |
tree | f9ca5ea1bb2878de7a15ada978a987ed0a99fe17 /plugins/tta | |
parent | 616ed122422c4651376db92e877b1d8e07bf55e3 (diff) |
removed samplerate bounds check from tta plugin
Diffstat (limited to 'plugins/tta')
-rw-r--r-- | plugins/tta/ttadec.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/plugins/tta/ttadec.c b/plugins/tta/ttadec.c index 38b58fbf..4d538517 100644 --- a/plugins/tta/ttadec.c +++ b/plugins/tta/ttadec.c @@ -314,16 +314,7 @@ int open_tta_file (const char *filename, tta_info *info, unsigned int data_offse // check for player supported formats if (ttahdr.AudioFormat != WAVE_FORMAT_PCM || ttahdr.NumChannels > MAX_NCH || - ttahdr.BitsPerSample > MAX_BPS ||( - ttahdr.SampleRate != 16000 && - ttahdr.SampleRate != 22050 && - ttahdr.SampleRate != 24000 && - ttahdr.SampleRate != 32000 && - ttahdr.SampleRate != 44100 && - ttahdr.SampleRate != 48000 && - ttahdr.SampleRate != 64000 && - ttahdr.SampleRate != 88200 && - ttahdr.SampleRate != 96000)) { + ttahdr.BitsPerSample > MAX_BPS) { trace ("tta: format error: invalid samplerate\n"); deadbeef->fclose (infile); info->STATE = FORMAT_ERROR; |