summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2014-12-17 11:44:50 -0800
committerSteve Kondik <steve@cyngn.com>2014-12-17 11:44:50 -0800
commitcd37382983781e1bdac7dff8b37e9dd2d4372d98 (patch)
treee2c74e4bd36ee2b8d14e302cdc3f8236ab5b249a
parenta6ec737fff364477e7e93543d18f51bb17bd8799 (diff)
downloadandroid_system_media-cd37382983781e1bdac7dff8b37e9dd2d4372d98.tar.gz
android_system_media-cd37382983781e1bdac7dff8b37e9dd2d4372d98.tar.bz2
android_system_media-cd37382983781e1bdac7dff8b37e9dd2d4372d98.zip
sndfile: Allow 24-bit packed samples
* Our pipeline supports this, allow 24-bit samples for the test cases. Change-Id: Ib265d056bf0443112147e59e6708a35dc3494d89
-rw-r--r--audio_utils/tinysndfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio_utils/tinysndfile.c b/audio_utils/tinysndfile.c
index 0d9a7111..334dab4e 100644
--- a/audio_utils/tinysndfile.c
+++ b/audio_utils/tinysndfile.c
@@ -164,7 +164,7 @@ static SNDFILE *sf_open_read(const char *path, SF_INFO *info)
// ignore byte rate
// ignore block alignment
unsigned bitsPerSample = little2u(&fmt[14]);
- if (bitsPerSample != 8 && bitsPerSample != 16 && bitsPerSample != 32) {
+ if (bitsPerSample != 8 && bitsPerSample != 16 && bitsPerSample != 24 && bitsPerSample != 32) {
fprintf(stderr, "bitsPerSample %u != 8 or 16 or 32\n", bitsPerSample);
goto close;
}