diff options
Diffstat (limited to 'apps/codecs/aiff.c')
-rw-r--r-- | apps/codecs/aiff.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/codecs/aiff.c b/apps/codecs/aiff.c index 4b870386c1..fbe814a645 100644 --- a/apps/codecs/aiff.c +++ b/apps/codecs/aiff.c | |||
@@ -21,7 +21,6 @@ | |||
21 | ****************************************************************************/ | 21 | ****************************************************************************/ |
22 | 22 | ||
23 | #include "codeclib.h" | 23 | #include "codeclib.h" |
24 | #include <inttypes.h> | ||
25 | #include "codecs/libpcm/support_formats.h" | 24 | #include "codecs/libpcm/support_formats.h" |
26 | 25 | ||
27 | CODEC_HEADER | 26 | CODEC_HEADER |
@@ -50,7 +49,9 @@ static const struct pcm_entry pcm_codecs[] = { | |||
50 | 49 | ||
51 | #define NUM_FORMATS 6 | 50 | #define NUM_FORMATS 6 |
52 | 51 | ||
53 | static int32_t samples[PCM_CHUNK_SIZE] IBSS_ATTR; | 52 | #define PCM_SAMPLE_SIZE (1024*2) |
53 | |||
54 | static int32_t samples[PCM_SAMPLE_SIZE] IBSS_ATTR; | ||
54 | 55 | ||
55 | static const struct pcm_codec *get_codec(uint32_t formattag) | 56 | static const struct pcm_codec *get_codec(uint32_t formattag) |
56 | { | 57 | { |
@@ -266,8 +267,8 @@ next_track: | |||
266 | 267 | ||
267 | /* check chunksize */ | 268 | /* check chunksize */ |
268 | if ((format.chunksize / format.blockalign) * format.samplesperblock * format.channels | 269 | if ((format.chunksize / format.blockalign) * format.samplesperblock * format.channels |
269 | > PCM_CHUNK_SIZE) | 270 | > PCM_SAMPLE_SIZE) |
270 | format.chunksize = (PCM_CHUNK_SIZE / format.blockalign) * format.blockalign; | 271 | format.chunksize = (PCM_SAMPLE_SIZE / format.blockalign) * format.blockalign; |
271 | if (format.chunksize == 0) | 272 | if (format.chunksize == 0) |
272 | { | 273 | { |
273 | DEBUGF("CODEC_ERROR: chunksize is 0\n"); | 274 | DEBUGF("CODEC_ERROR: chunksize is 0\n"); |