mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
cavsdsp: fix "warning: initialization discards const qualifier from pointer target type"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f7a02d5d69
commit
4394528d2d
@ -186,7 +186,7 @@ static void cavs_filter_ch_c(uint8_t *d, int stride, int alpha, int beta, int tc
|
||||
static void cavs_idct8_add_c(uint8_t *dst, int16_t *block, int stride) {
|
||||
int i;
|
||||
int16_t (*src)[8] = (int16_t(*)[8])block;
|
||||
uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
|
||||
const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
|
||||
|
||||
src[0][0] += 8;
|
||||
|
||||
@ -261,7 +261,7 @@ static void cavs_idct8_add_c(uint8_t *dst, int16_t *block, int stride) {
|
||||
#define CAVS_SUBPIX(OPNAME, OP, NAME, A, B, C, D, E, F) \
|
||||
static void OPNAME ## cavs_filt8_h_ ## NAME(uint8_t *dst, uint8_t *src, int dstStride, int srcStride){\
|
||||
const int h=8;\
|
||||
uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;\
|
||||
const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;\
|
||||
int i;\
|
||||
for(i=0; i<h; i++)\
|
||||
{\
|
||||
@ -280,7 +280,7 @@ static void OPNAME ## cavs_filt8_h_ ## NAME(uint8_t *dst, uint8_t *src, int dstS
|
||||
\
|
||||
static void OPNAME ## cavs_filt8_v_ ## NAME(uint8_t *dst, uint8_t *src, int dstStride, int srcStride){\
|
||||
const int w=8;\
|
||||
uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;\
|
||||
const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;\
|
||||
int i;\
|
||||
for(i=0; i<w; i++)\
|
||||
{\
|
||||
@ -334,7 +334,7 @@ static void OPNAME ## cavs_filt8_hv_ ## NAME(uint8_t *dst, uint8_t *src1, uint8_
|
||||
int16_t *tmp = temp;\
|
||||
const int h=8;\
|
||||
const int w=8;\
|
||||
uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;\
|
||||
const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;\
|
||||
int i;\
|
||||
src1 -= 2*srcStride;\
|
||||
for(i=0; i<h+5; i++)\
|
||||
|
Loading…
Reference in New Issue
Block a user