# HG changeset patch # User michael # Date 1201874431 0 # Node ID 817e302aae08145d2a357826963b72b08417fd74 # Parent bacdb708975678881b55ec6b4ab20dcebe842657 const diff -r bacdb7089756 -r 817e302aae08 pngdec.c --- 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;