Originally committed as revision 11711 to svn://svn.ffmpeg.org/ffmpeg/trunk

Michael Niedermayer authored on 2008/02/01 12:39:15
Showing 3 changed files
... ...
@@ -58,7 +58,7 @@ static int aasc_decode_init(AVCodecContext *avctx)
58 58
 
59 59
 static int aasc_decode_frame(AVCodecContext *avctx,
60 60
                               void *data, int *data_size,
61
-                              uint8_t *buf, int buf_size)
61
+                              const uint8_t *buf, int buf_size)
62 62
 {
63 63
     AascContext *s = avctx->priv_data;
64 64
     int stream_ptr = 4;
... ...
@@ -107,7 +107,7 @@ static void allocate_buffers(ALACContext *alac)
107 107
 
108 108
 static int alac_set_info(ALACContext *alac)
109 109
 {
110
-    unsigned char *ptr = alac->avctx->extradata;
110
+    const unsigned char *ptr = alac->avctx->extradata;
111 111
 
112 112
     ptr += 4; /* size */
113 113
     ptr += 4; /* alac */
... ...
@@ -439,7 +439,7 @@ static void reconstruct_stereo_16(int32_t *buffer[MAX_CHANNELS],
439 439
 
440 440
 static int alac_decode_frame(AVCodecContext *avctx,
441 441
                              void *outbuffer, int *outputsize,
442
-                             uint8_t *inbuffer, int input_buffer_size)
442
+                             const uint8_t *inbuffer, int input_buffer_size)
443 443
 {
444 444
     ALACContext *alac = avctx->priv_data;
445 445
 
... ...
@@ -32,13 +32,14 @@
32 32
 
33 33
 static int sp5x_decode_frame(AVCodecContext *avctx,
34 34
                               void *data, int *data_size,
35
-                              uint8_t *buf, int buf_size)
35
+                              const uint8_t *buf, int buf_size)
36 36
 {
37 37
 #if 0
38 38
     MJpegDecodeContext *s = avctx->priv_data;
39 39
 #endif
40 40
     const int qscale = 5;
41
-    uint8_t *buf_ptr, *buf_end, *recoded;
41
+    const uint8_t *buf_ptr, *buf_end;
42
+    uint8_t *recoded;
42 43
     int i = 0, j = 0;
43 44
 
44 45
     if (!avctx->width || !avctx->height)