diff options
Diffstat (limited to 'apps/codecs/flac.c')
-rw-r--r-- | apps/codecs/flac.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/codecs/flac.c b/apps/codecs/flac.c index 72bb26663a..b9f6654f92 100644 --- a/apps/codecs/flac.c +++ b/apps/codecs/flac.c | |||
@@ -27,7 +27,7 @@ CODEC_HEADER | |||
27 | /* The output buffers containing the decoded samples (channels 0 and 1) */ | 27 | /* The output buffers containing the decoded samples (channels 0 and 1) */ |
28 | static int32_t decoded0[MAX_BLOCKSIZE] IBSS_ATTR_FLAC_DECODED0; | 28 | static int32_t decoded0[MAX_BLOCKSIZE] IBSS_ATTR_FLAC_DECODED0; |
29 | static int32_t decoded1[MAX_BLOCKSIZE] IBSS_ATTR; | 29 | static int32_t decoded1[MAX_BLOCKSIZE] IBSS_ATTR; |
30 | static int32_t dummydec[MAX_BLOCKSIZE]; | 30 | static int32_t dummydec[4][MAX_BLOCKSIZE]; |
31 | 31 | ||
32 | #define MAX_SUPPORTED_SEEKTABLE_SIZE 5000 | 32 | #define MAX_SUPPORTED_SEEKTABLE_SIZE 5000 |
33 | 33 | ||
@@ -98,8 +98,7 @@ static bool flac_init(FLACContext* fc, int first_frame_offset) | |||
98 | fc->decoded[1] = decoded1; | 98 | fc->decoded[1] = decoded1; |
99 | for (ch=2; ch<MAX_CHANNELS; ++ch) | 99 | for (ch=2; ch<MAX_CHANNELS; ++ch) |
100 | { | 100 | { |
101 | /* Only channel 0 and 1 are used, the other are decoded to scratch */ | 101 | fc->decoded[ch] = dummydec[ch-2]; |
102 | fc->decoded[ch] = dummydec; | ||
103 | } | 102 | } |
104 | 103 | ||
105 | /* Skip any foreign tags at start of file */ | 104 | /* Skip any foreign tags at start of file */ |