diff options
| author | Lennart Poettering <lennart@poettering.net> | 2008-07-18 16:22:07 +0200 | 
|---|---|---|
| committer | Lennart Poettering <lennart@poettering.net> | 2008-07-18 16:22:07 +0200 | 
| commit | 6c9401166d010dafa3f582823ea71c22d434e66b (patch) | |
| tree | 855cea81efab2defa390b5bfe4d474932094933b /src | |
| parent | ecb2e5d125279defd1fb638968a83425a60d7b4e (diff) | |
fix reading of 8bit audio files
Diffstat (limited to 'src')
| -rw-r--r-- | src/read-wav.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/read-wav.c b/src/read-wav.c index 792b913..23c0e7e 100644 --- a/src/read-wav.c +++ b/src/read-wav.c @@ -244,7 +244,7 @@ int ca_wav_read_u8(ca_wav *w, uint8_t *d, unsigned *n) {          if (*n <= 0 && ferror(w->file))              return CA_ERROR_SYSTEM; -        ca_assert(w->data_size >= *n * sizeof(int16_t)); +        ca_assert(w->data_size >= *n * sizeof(uint8_t));          w->data_size -= *n * sizeof(uint8_t);      } | 
