changeset 6314:de5d97b6c25b libavcodec

Add some const where appropriate
author reimar
date Sat, 02 Feb 2008 21:55:56 +0000
parents ce8de7773485
children 9ac5c0cfeb56
files roqvideo.h roqvideodec.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
 
--- 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);