Commit b3d5468d authored by Reimar Döffinger's avatar Reimar Döffinger

Add some const where appropriate

Originally committed as revision 11818 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 6be4042c
...@@ -51,7 +51,7 @@ typedef struct RoqContext { ...@@ -51,7 +51,7 @@ typedef struct RoqContext {
roq_cell cb2x2[256]; roq_cell cb2x2[256];
roq_qcell cb4x4[256]; roq_qcell cb4x4[256];
unsigned char *buf; const unsigned char *buf;
int size; int size;
int width, height; int width, height;
......
...@@ -44,7 +44,7 @@ static void roqvideo_decode_frame(RoqContext *ri) ...@@ -44,7 +44,7 @@ static void roqvideo_decode_frame(RoqContext *ri)
int frame_stats[2][4] = {{0},{0}}; int frame_stats[2][4] = {{0},{0}};
roq_qcell *qcell; roq_qcell *qcell;
const unsigned char *buf = ri->buf; 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) { while (buf < buf_end) {
chunk_id = bytestream_get_le16(&buf); chunk_id = bytestream_get_le16(&buf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment