[FFmpeg-cvslog] r11818 - in trunk/libavcodec: roqvideo.h roqvideodec.c

reimar subversion
Sat Feb 2 22:55:56 CET 2008


Author: reimar
Date: Sat Feb  2 22:55:56 2008
New Revision: 11818

Log:
Add some const where appropriate


Modified:
   trunk/libavcodec/roqvideo.h
   trunk/libavcodec/roqvideodec.c

Modified: trunk/libavcodec/roqvideo.h
==============================================================================
--- trunk/libavcodec/roqvideo.h	(original)
+++ trunk/libavcodec/roqvideo.h	Sat Feb  2 22:55:56 2008
@@ -51,7 +51,7 @@ typedef struct RoqContext {
     roq_cell cb2x2[256];
     roq_qcell cb4x4[256];
 
-    unsigned char *buf;
+    const unsigned char *buf;
     int size;
     int width, height;
 

Modified: trunk/libavcodec/roqvideodec.c
==============================================================================
--- trunk/libavcodec/roqvideodec.c	(original)
+++ trunk/libavcodec/roqvideodec.c	Sat Feb  2 22:55:56 2008
@@ -44,7 +44,7 @@ static void roqvideo_decode_frame(RoqCon
     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);




More information about the ffmpeg-cvslog mailing list