summaryrefslogtreecommitdiff
path: root/apps/codecs/aiff.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/aiff.c')
-rw-r--r--apps/codecs/aiff.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/codecs/aiff.c b/apps/codecs/aiff.c
index 4b87038..fbe814a 100644
--- a/apps/codecs/aiff.c
+++ b/apps/codecs/aiff.c
@@ -21,7 +21,6 @@
****************************************************************************/
#include "codeclib.h"
-#include <inttypes.h>
#include "codecs/libpcm/support_formats.h"
CODEC_HEADER
@@ -50,7 +49,9 @@ static const struct pcm_entry pcm_codecs[] = {
#define NUM_FORMATS 6
-static int32_t samples[PCM_CHUNK_SIZE] IBSS_ATTR;
+#define PCM_SAMPLE_SIZE (1024*2)
+
+static int32_t samples[PCM_SAMPLE_SIZE] IBSS_ATTR;
static const struct pcm_codec *get_codec(uint32_t formattag)
{
@@ -266,8 +267,8 @@ next_track:
/* check chunksize */
if ((format.chunksize / format.blockalign) * format.samplesperblock * format.channels
- > PCM_CHUNK_SIZE)
- format.chunksize = (PCM_CHUNK_SIZE / format.blockalign) * format.blockalign;
+ > PCM_SAMPLE_SIZE)
+ format.chunksize = (PCM_SAMPLE_SIZE / format.blockalign) * format.blockalign;
if (format.chunksize == 0)
{
DEBUGF("CODEC_ERROR: chunksize is 0\n");