OSDN Git Service

const
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Feb 2008 14:10:56 +0000 (14:10 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Feb 2008 14:10:56 +0000 (14:10 +0000)
Originally committed as revision 11743 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/smc.c

index 78f130c..f181e0c 100644 (file)
@@ -48,7 +48,7 @@ typedef struct SmcContext {
     DSPContext dsp;
     AVFrame frame;
 
-    unsigned char *buf;
+    const unsigned char *buf;
     int size;
 
     /* SMC color tables */
@@ -443,7 +443,7 @@ static int smc_decode_init(AVCodecContext *avctx)
 
 static int smc_decode_frame(AVCodecContext *avctx,
                              void *data, int *data_size,
-                             uint8_t *buf, int buf_size)
+                             const uint8_t *buf, int buf_size)
 {
     SmcContext *s = avctx->priv_data;