summaryrefslogtreecommitdiff
path: root/libavcodec/apedec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-02-01 03:46:11 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-02-01 03:46:11 +0000
commitf84a02c0d13329012ffd480f02167fb9cb4a943c (patch)
treed622458ce7e60eb58d4fcfddebe8d7e5ae6da784 /libavcodec/apedec.c
parent2b3c8f8a6a67ab52ce8be9ac803eb8619d4243f2 (diff)
downloadffmpeg-f84a02c0d13329012ffd480f02167fb9cb4a943c.tar.gz
const
Originally committed as revision 11713 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/apedec.c')
-rw-r--r--libavcodec/apedec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/apedec.c b/libavcodec/apedec.c
index 5421aade97..032bc73976 100644
--- a/libavcodec/apedec.c
+++ b/libavcodec/apedec.c
@@ -154,8 +154,8 @@ typedef struct APEContext {
uint8_t *data; ///< current frame data
uint8_t *data_end; ///< frame data end
- uint8_t *ptr; ///< current position in frame data
- uint8_t *last_ptr; ///< position where last 4608-sample block ended
+ const uint8_t *ptr; ///< current position in frame data
+ const uint8_t *last_ptr; ///< position where last 4608-sample block ended
} APEContext;
// TODO: dsputilize
@@ -834,7 +834,7 @@ static void ape_unpack_stereo(APEContext * ctx, int count)
static int ape_decode_frame(AVCodecContext * avctx,
void *data, int *data_size,
- uint8_t * buf, int buf_size)
+ const uint8_t * buf, int buf_size)
{
APEContext *s = avctx->priv_data;
int16_t *samples = data;
@@ -856,7 +856,7 @@ static int ape_decode_frame(AVCodecContext * avctx,
if(!s->samples){
s->data = av_realloc(s->data, (buf_size + 3) & ~3);
- s->dsp.bswap_buf((uint32_t*)s->data, (uint32_t*)buf, buf_size >> 2);
+ s->dsp.bswap_buf((uint32_t*)s->data, (const uint32_t*)buf, buf_size >> 2);
s->ptr = s->last_ptr = s->data;
s->data_end = s->data + buf_size;