diff cyuv.c @ 6231:6d95434fa51a libavcodec

const
author michael
date Fri, 01 Feb 2008 04:04:44 +0000
parents 470601203f44
children c32be43b52b2
line wrap: on
line diff
--- a/cyuv.c	Fri Feb 01 04:02:28 2008 +0000
+++ b/cyuv.c	Fri Feb 01 04:04:44 2008 +0000
@@ -61,7 +61,7 @@
 
 static int cyuv_decode_frame(AVCodecContext *avctx,
                              void *data, int *data_size,
-                             uint8_t *buf, int buf_size)
+                             const uint8_t *buf, int buf_size)
 {
     CyuvDecodeContext *s=avctx->priv_data;
 
@@ -73,9 +73,9 @@
     int v_ptr;
 
     /* prediction error tables (make it clear that they are signed values) */
-    signed char *y_table = (signed char*)buf +  0;
-    signed char *u_table = (signed char*)buf + 16;
-    signed char *v_table = (signed char*)buf + 32;
+    const signed char *y_table = (const signed char*)buf +  0;
+    const signed char *u_table = (const signed char*)buf + 16;
+    const signed char *v_table = (const signed char*)buf + 32;
 
     unsigned char y_pred, u_pred, v_pred;
     int stream_ptr;