changeset 6221:b42a510e0939 libavcodec

const
author michael
date Fri, 01 Feb 2008 03:39:15 +0000
parents 0ed0d9d578ad
children 01e909d2a435
files aasc.c alac.c sp5xdec.c
diffstat 3 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/aasc.c	Fri Feb 01 03:34:43 2008 +0000
+++ b/aasc.c	Fri Feb 01 03:39:15 2008 +0000
@@ -58,7 +58,7 @@
 
 static int aasc_decode_frame(AVCodecContext *avctx,
                               void *data, int *data_size,
-                              uint8_t *buf, int buf_size)
+                              const uint8_t *buf, int buf_size)
 {
     AascContext *s = avctx->priv_data;
     int stream_ptr = 4;
--- a/alac.c	Fri Feb 01 03:34:43 2008 +0000
+++ b/alac.c	Fri Feb 01 03:39:15 2008 +0000
@@ -107,7 +107,7 @@
 
 static int alac_set_info(ALACContext *alac)
 {
-    unsigned char *ptr = alac->avctx->extradata;
+    const unsigned char *ptr = alac->avctx->extradata;
 
     ptr += 4; /* size */
     ptr += 4; /* alac */
@@ -439,7 +439,7 @@
 
 static int alac_decode_frame(AVCodecContext *avctx,
                              void *outbuffer, int *outputsize,
-                             uint8_t *inbuffer, int input_buffer_size)
+                             const uint8_t *inbuffer, int input_buffer_size)
 {
     ALACContext *alac = avctx->priv_data;
 
--- a/sp5xdec.c	Fri Feb 01 03:34:43 2008 +0000
+++ b/sp5xdec.c	Fri Feb 01 03:39:15 2008 +0000
@@ -32,13 +32,14 @@
 
 static int sp5x_decode_frame(AVCodecContext *avctx,
                               void *data, int *data_size,
-                              uint8_t *buf, int buf_size)
+                              const uint8_t *buf, int buf_size)
 {
 #if 0
     MJpegDecodeContext *s = avctx->priv_data;
 #endif
     const int qscale = 5;
-    uint8_t *buf_ptr, *buf_end, *recoded;
+    const uint8_t *buf_ptr, *buf_end;
+    uint8_t *recoded;
     int i = 0, j = 0;
 
     if (!avctx->width || !avctx->height)