summaryrefslogtreecommitdiffstats
path: root/libavcodec/cavsdsp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-04-03 15:28:45 +0300
committerMartin Storsjö <martin@martin.st>2013-04-08 12:38:33 +0300
commit9e0f14f16cfc9456a691655fda7d01090bffe47e (patch)
tree3ed6da9561ea0bd3fabe9d154ee47de76ccd0c96 /libavcodec/cavsdsp.c
parent18df366a1857f9a92e158858cf495b61d096c7f1 (diff)
downloadffmpeg-streaming-9e0f14f16cfc9456a691655fda7d01090bffe47e.zip
ffmpeg-streaming-9e0f14f16cfc9456a691655fda7d01090bffe47e.tar.gz
lavc: Make pointers to ff_cropTbl const
There's no point in these pointers not being const. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/cavsdsp.c')
-rw-r--r--libavcodec/cavsdsp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/cavsdsp.c b/libavcodec/cavsdsp.c
index e8494ec..70c8f35 100644
--- a/libavcodec/cavsdsp.c
+++ b/libavcodec/cavsdsp.c
@@ -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++)\
OpenPOWER on IntegriCloud