diff pcm.c @ 6218:dfdff1ca78a7 libavcodec

consts I have underestimated this a little, and these are just some ...
author michael
date Fri, 01 Feb 2008 03:26:31 +0000
parents bd7600c7a061
children 48759bfbd073
line wrap: on
line diff
--- a/pcm.c	Fri Feb 01 02:36:09 2008 +0000
+++ b/pcm.c	Fri Feb 01 03:26:31 2008 +0000
@@ -355,7 +355,7 @@
  * \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 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;