diff options
author | Steve Kondik <steve@cyngn.com> | 2014-12-17 11:44:50 -0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2014-12-17 11:44:50 -0800 |
commit | cd37382983781e1bdac7dff8b37e9dd2d4372d98 (patch) | |
tree | e2c74e4bd36ee2b8d14e302cdc3f8236ab5b249a | |
parent | a6ec737fff364477e7e93543d18f51bb17bd8799 (diff) | |
download | android_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.c | 2 |
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; } |