diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-02-01 03:26:31 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-02-01 03:26:31 +0000 |
commit | 7993df65275a9a9bf0a04c37d1aa31901d3ebb0c (patch) | |
tree | 12ac05b322190d0bbbf660aef2e280128d15020a /libavcodec/pcm.c | |
parent | ff794171c97ae123cac041726e9c8bdc36c7e6c0 (diff) | |
download | ffmpeg-7993df65275a9a9bf0a04c37d1aa31901d3ebb0c.tar.gz |
consts
I have underestimated this a little, and these are just some ...
Originally committed as revision 11708 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/pcm.c')
-rw-r--r-- | libavcodec/pcm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index c7a7e82477..926c6f0109 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -355,7 +355,7 @@ static int pcm_decode_init(AVCodecContext * avctx) * \param src_len number of bytes in src */ static inline void decode_to16(int bps, int le, int us, - uint8_t **src, short **samples, int src_len) + const uint8_t **src, short **samples, int src_len) { int usum = us ? -0x8000 : 0; register int n = src_len / bps; @@ -373,12 +373,12 @@ static inline void decode_to16(int bps, int le, int us, static int pcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, - uint8_t *buf, int buf_size) + const uint8_t *buf, int buf_size) { PCMDecode *s = avctx->priv_data; int c, n; short *samples; - uint8_t *src, *src2[MAX_CHANNELS]; + const uint8_t *src, *src2[MAX_CHANNELS]; samples = data; src = buf; |