Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Reimar Döffinger authored on 2014/08/31 00:58:51... | ... |
@@ -115,7 +115,7 @@ typedef struct WMACodecContext { |
115 | 115 |
DECLARE_ALIGNED(32, float, coefs)[MAX_CHANNELS][BLOCK_MAX_SIZE]; |
116 | 116 |
DECLARE_ALIGNED(32, FFTSample, output)[BLOCK_MAX_SIZE * 2]; |
117 | 117 |
FFTContext mdct_ctx[BLOCK_NB_SIZES]; |
118 |
- float *windows[BLOCK_NB_SIZES]; |
|
118 |
+ const float *windows[BLOCK_NB_SIZES]; |
|
119 | 119 |
/* output buffer for one frame and the last for IMDCT windowing */ |
120 | 120 |
DECLARE_ALIGNED(32, float, frame_out)[MAX_CHANNELS][BLOCK_MAX_SIZE * 2]; |
121 | 121 |
/* last frame info */ |
... | ... |
@@ -177,7 +177,7 @@ typedef struct WMAProDecodeCtx { |
177 | 177 |
PutBitContext pb; ///< context for filling the frame_data buffer |
178 | 178 |
FFTContext mdct_ctx[WMAPRO_BLOCK_SIZES]; ///< MDCT context per block size |
179 | 179 |
DECLARE_ALIGNED(32, float, tmp)[WMAPRO_BLOCK_MAX_SIZE]; ///< IMDCT output buffer |
180 |
- float* windows[WMAPRO_BLOCK_SIZES]; ///< windows for the different block sizes |
|
180 |
+ const float* windows[WMAPRO_BLOCK_SIZES]; ///< windows for the different block sizes |
|
181 | 181 |
|
182 | 182 |
/* frame size dependent frame information (set during initialization) */ |
183 | 183 |
uint32_t decode_flags; ///< used compression features |
... | ... |
@@ -1055,7 +1055,7 @@ static void wmapro_window(WMAProDecodeCtx *s) |
1055 | 1055 |
int i; |
1056 | 1056 |
for (i = 0; i < s->channels_for_cur_subframe; i++) { |
1057 | 1057 |
int c = s->channel_indexes_for_cur_subframe[i]; |
1058 |
- float* window; |
|
1058 |
+ const float* window; |
|
1059 | 1059 |
int winlen = s->channel[c].prev_block_len; |
1060 | 1060 |
float* start = s->channel[c].coeffs - (winlen >> 1); |
1061 | 1061 |
|