diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2014-08-30 17:58:51 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2014-08-31 10:31:09 +0200 |
commit | 4fe448738e8d4d87295e1fc7b68bb04f7453c3b9 (patch) | |
tree | 163cb2227819c6a8f4215516ed9292b69449e517 /libavcodec/wmaprodec.c | |
parent | 3bc5d2a06401bec22865cff6084b35ecf757baa2 (diff) | |
download | ffmpeg-4fe448738e8d4d87295e1fc7b68bb04f7453c3b9.tar.gz |
WMA: add "const" to avoid warnings with hardcoded tables.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/wmaprodec.c')
-rw-r--r-- | libavcodec/wmaprodec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c index 2f6c485891..f45e1fcdbc 100644 --- a/libavcodec/wmaprodec.c +++ b/libavcodec/wmaprodec.c @@ -177,7 +177,7 @@ typedef struct WMAProDecodeCtx { PutBitContext pb; ///< context for filling the frame_data buffer FFTContext mdct_ctx[WMAPRO_BLOCK_SIZES]; ///< MDCT context per block size DECLARE_ALIGNED(32, float, tmp)[WMAPRO_BLOCK_MAX_SIZE]; ///< IMDCT output buffer - float* windows[WMAPRO_BLOCK_SIZES]; ///< windows for the different block sizes + const float* windows[WMAPRO_BLOCK_SIZES]; ///< windows for the different block sizes /* frame size dependent frame information (set during initialization) */ uint32_t decode_flags; ///< used compression features @@ -1055,7 +1055,7 @@ static void wmapro_window(WMAProDecodeCtx *s) int i; for (i = 0; i < s->channels_for_cur_subframe; i++) { int c = s->channel_indexes_for_cur_subframe[i]; - float* window; + const float* window; int winlen = s->channel[c].prev_block_len; float* start = s->channel[c].coeffs - (winlen >> 1); |