comparison cook.c @ 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 c2ab2ac31edb
children 69b14049d7c8
comparison
equal deleted inserted replaced
6196:166bef5cad01 6197:2ca0a91b0b24
143 float mono_previous_buffer2[1024]; 143 float mono_previous_buffer2[1024];
144 float decode_buffer_1[1024]; 144 float decode_buffer_1[1024];
145 float decode_buffer_2[1024]; 145 float decode_buffer_2[1024];
146 float decode_buffer_0[1060]; /* static allocation for joint decode */ 146 float decode_buffer_0[1060]; /* static allocation for joint decode */
147 147
148 float *cplscales[5]; 148 const float *cplscales[5];
149 } COOKContext; 149 } COOKContext;
150 150
151 /* debug functions */ 151 /* debug functions */
152 152
153 #ifdef COOKDEBUG 153 #ifdef COOKDEBUG
262 av_log2(mlt_size)+1); 262 av_log2(mlt_size)+1);
263 263
264 return 0; 264 return 0;
265 } 265 }
266 266
267 static float *maybe_reformat_buffer32 (COOKContext *q, float *ptr, int n) 267 static const float *maybe_reformat_buffer32 (COOKContext *q, const float *ptr, int n)
268 { 268 {
269 if (1) 269 if (1)
270 return ptr; 270 return ptr;
271 } 271 }
272 272
830 int i,j; 830 int i,j;
831 int decouple_tab[SUBBAND_SIZE]; 831 int decouple_tab[SUBBAND_SIZE];
832 float *decode_buffer = q->decode_buffer_0; 832 float *decode_buffer = q->decode_buffer_0;
833 int idx, cpl_tmp; 833 int idx, cpl_tmp;
834 float f1,f2; 834 float f1,f2;
835 float* cplscale; 835 const float* cplscale;
836 836
837 memset(decouple_tab, 0, sizeof(decouple_tab)); 837 memset(decouple_tab, 0, sizeof(decouple_tab));
838 memset(decode_buffer, 0, sizeof(decode_buffer)); 838 memset(decode_buffer, 0, sizeof(decode_buffer));
839 839
840 /* Make sure the buffers are zeroed out. */ 840 /* Make sure the buffers are zeroed out. */