diff options
author | Martin Storsjö <martin@martin.st> | 2013-04-03 15:28:45 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-04-08 12:38:33 +0300 |
commit | 9e0f14f16cfc9456a691655fda7d01090bffe47e (patch) | |
tree | 3ed6da9561ea0bd3fabe9d154ee47de76ccd0c96 /libavcodec/rv40dsp.c | |
parent | 18df366a1857f9a92e158858cf495b61d096c7f1 (diff) | |
download | ffmpeg-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/rv40dsp.c')
-rw-r--r-- | libavcodec/rv40dsp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/rv40dsp.c b/libavcodec/rv40dsp.c index 20f075d034..b63d238662 100644 --- a/libavcodec/rv40dsp.c +++ b/libavcodec/rv40dsp.c @@ -32,7 +32,7 @@ #define RV40_LOWPASS(OPNAME, OP) \ static av_unused void OPNAME ## rv40_qpel8_h_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride,\ const int h, const int C1, const int C2, const int SHIFT){\ - 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++)\ {\ @@ -51,7 +51,7 @@ static av_unused void OPNAME ## rv40_qpel8_h_lowpass(uint8_t *dst, uint8_t *src, \ static void OPNAME ## rv40_qpel8_v_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride,\ const int w, const int C1, const int C2, const int SHIFT){\ - 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++)\ {\ @@ -350,7 +350,7 @@ static av_always_inline void rv40_weak_loop_filter(uint8_t *src, const int lim_q1, const int lim_p1) { - uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; + const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; int i, t, u, diff; for (i = 0; i < 4; i++, src += stride) { |