diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-02-01 04:04:44 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-02-01 04:04:44 +0000 |
commit | 75739ba290ae16e7547d753f7f27ddb583a1179b (patch) | |
tree | 75a53bf7abb0951c414fd66a472acd138e0f13cd /libavcodec/cyuv.c | |
parent | d31522b8f16e22af52605a24db3840758af384da (diff) | |
download | ffmpeg-75739ba290ae16e7547d753f7f27ddb583a1179b.tar.gz |
const
Originally committed as revision 11721 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cyuv.c')
-rw-r--r-- | libavcodec/cyuv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/cyuv.c b/libavcodec/cyuv.c index a1a750902e..c36495ec6d 100644 --- a/libavcodec/cyuv.c +++ b/libavcodec/cyuv.c @@ -61,7 +61,7 @@ static int cyuv_decode_init(AVCodecContext *avctx) 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 @@ static int cyuv_decode_frame(AVCodecContext *avctx, 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; |