changeset 6245:817e302aae08 libavcodec

const
author michael
date Fri, 01 Feb 2008 14:00:31 +0000
parents bacdb7089756
children ce0378d4c06c
files pngdec.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/pngdec.c	Fri Feb 01 13:58:41 2008 +0000
+++ b/pngdec.c	Fri Feb 01 14:00:31 2008 +0000
@@ -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 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;