Mercurial > libavcodec.hg
changeset 6197:2ca0a91b0b24 libavcodec
add const, fix warning: cook.c:276: warning: passing argument 2 of 'maybe_reformat_buffer32' discards qualifiers from pointer target type
author | bcoudurier |
---|---|
date | Wed, 30 Jan 2008 23:58:44 +0000 |
parents | 166bef5cad01 |
children | e09251439406 |
files | cook.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/cook.c Wed Jan 30 23:54:59 2008 +0000 +++ b/cook.c Wed Jan 30 23:58:44 2008 +0000 @@ -145,7 +145,7 @@ float decode_buffer_2[1024]; float decode_buffer_0[1060]; /* static allocation for joint decode */ - float *cplscales[5]; + const float *cplscales[5]; } COOKContext; /* debug functions */ @@ -264,7 +264,7 @@ return 0; } -static float *maybe_reformat_buffer32 (COOKContext *q, float *ptr, int n) +static const float *maybe_reformat_buffer32 (COOKContext *q, const float *ptr, int n) { if (1) return ptr; @@ -832,7 +832,7 @@ float *decode_buffer = q->decode_buffer_0; int idx, cpl_tmp; float f1,f2; - float* cplscale; + const float* cplscale; memset(decouple_tab, 0, sizeof(decouple_tab)); memset(decode_buffer, 0, sizeof(decode_buffer));