aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/pngdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-02-01 14:00:31 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-02-01 14:00:31 +0000
commit1dc5527934596c2499668405cf729e563b5925c4 (patch)
tree5cc6f5716ff8a0059033a272d08950e2494c70ff /libavcodec/pngdec.c
parent3c71bc55dc1cb9fa7cc9daeb3c55c9849efb7899 (diff)
downloadffmpeg-1dc5527934596c2499668405cf729e563b5925c4.tar.gz
const
Originally committed as revision 11736 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/pngdec.c')
-rw-r--r--libavcodec/pngdec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index b68ea4db10..878da12b11 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -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;