# HG changeset patch # User reimar # Date 1201989356 0 # Node ID de5d97b6c25bec774553cc7b02322a1c64abcaf7 # Parent ce8de7773485f613b3d9364352b3df6a9455016d Add some const where appropriate diff -r ce8de7773485 -r de5d97b6c25b roqvideo.h --- a/roqvideo.h Sat Feb 02 21:38:25 2008 +0000 +++ b/roqvideo.h Sat Feb 02 21:55:56 2008 +0000 @@ -51,7 +51,7 @@ roq_cell cb2x2[256]; roq_qcell cb4x4[256]; - unsigned char *buf; + const unsigned char *buf; int size; int width, height; diff -r ce8de7773485 -r de5d97b6c25b roqvideodec.c --- a/roqvideodec.c Sat Feb 02 21:38:25 2008 +0000 +++ b/roqvideodec.c Sat Feb 02 21:55:56 2008 +0000 @@ -44,7 +44,7 @@ int frame_stats[2][4] = {{0},{0}}; roq_qcell *qcell; const unsigned char *buf = ri->buf; - unsigned char *buf_end = ri->buf + ri->size; + const unsigned char *buf_end = ri->buf + ri->size; while (buf < buf_end) { chunk_id = bytestream_get_le16(&buf);