summaryrefslogtreecommitdiff
path: root/apps/recorder/resize.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder/resize.c')
-rw-r--r--apps/recorder/resize.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/recorder/resize.c b/apps/recorder/resize.c
index 99ccc84d55..2e6c3ff266 100644
--- a/apps/recorder/resize.c
+++ b/apps/recorder/resize.c
@@ -31,6 +31,7 @@
31 * 31 *
32 ****************************************************************************/ 32 ****************************************************************************/
33 33
34#include <system.h>
34#include <stdio.h> 35#include <stdio.h>
35#include <stdlib.h> 36#include <stdlib.h>
36#include <string.h> 37#include <string.h>
@@ -616,10 +617,7 @@ int resize_on_load(struct bitmap *bm, bool dither, struct dim *src,
616 uint8_t sc_buf[(needed <= len || needed > MAX_SC_STACK_ALLOC) ? 617 uint8_t sc_buf[(needed <= len || needed > MAX_SC_STACK_ALLOC) ?
617 0 : needed]; 618 0 : needed];
618#endif 619#endif
619#if CONFIG_CODEC == SWCODEC 620 ALIGN_BUFFER(buf, len, sizeof(uint32_t));
620 len = (unsigned int)align_buffer(PUN_PTR(void**, &buf), len,
621 sizeof(uint32_t));
622#endif
623 if (needed > len) 621 if (needed > len)
624 { 622 {
625#if MAX_SC_STACK_ALLOC 623#if MAX_SC_STACK_ALLOC