Commit b7718c84 authored by bcoudurier's avatar bcoudurier

add const, fix warning: cook.c:276: warning: passing argument 2 of...

add const, fix warning: cook.c:276: warning: passing argument 2 of 'maybe_reformat_buffer32' discards qualifiers from pointer target type

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11674 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ab24061e
...@@ -145,7 +145,7 @@ typedef struct cook { ...@@ -145,7 +145,7 @@ typedef struct cook {
float decode_buffer_2[1024]; float decode_buffer_2[1024];
float decode_buffer_0[1060]; /* static allocation for joint decode */ float decode_buffer_0[1060]; /* static allocation for joint decode */
float *cplscales[5]; const float *cplscales[5];
} COOKContext; } COOKContext;
/* debug functions */ /* debug functions */
...@@ -264,7 +264,7 @@ static int init_cook_mlt(COOKContext *q) { ...@@ -264,7 +264,7 @@ static int init_cook_mlt(COOKContext *q) {
return 0; 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) if (1)
return ptr; return ptr;
...@@ -832,7 +832,7 @@ static void joint_decode(COOKContext *q, float* mlt_buffer1, ...@@ -832,7 +832,7 @@ static void joint_decode(COOKContext *q, float* mlt_buffer1,
float *decode_buffer = q->decode_buffer_0; float *decode_buffer = q->decode_buffer_0;
int idx, cpl_tmp; int idx, cpl_tmp;
float f1,f2; float f1,f2;
float* cplscale; const float* cplscale;
memset(decouple_tab, 0, sizeof(decouple_tab)); memset(decouple_tab, 0, sizeof(decouple_tab));
memset(decode_buffer, 0, sizeof(decode_buffer)); memset(decode_buffer, 0, sizeof(decode_buffer));
......
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