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

libavcodec/pngdec.c

index b68ea4d..878da12 100644 (file)
@@ -31,9 +31,9 @@
 //#define DEBUG
 
 typedef struct PNGDecContext {
-    uint8_t *bytestream;
-    uint8_t *bytestream_start;
-    uint8_t *bytestream_end;
+    const uint8_t *bytestream;
+    const uint8_t *bytestream_start;
+    const uint8_t *bytestream_end;
     AVFrame picture;
 
     int state;
@@ -312,7 +312,7 @@ static int png_decode_idat(PNGDecContext *s, int length)
 
 static int decode_frame(AVCodecContext *avctx,
                         void *data, int *data_size,
-                        uint8_t *buf, int buf_size)
+                        const uint8_t *buf, int buf_size)
 {
     PNGDecContext * const s = avctx->priv_data;
     AVFrame *picture = data;