From 7fb993d338d88f2f62e0a358b6c9f3eb9a3a08ac Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Thu, 24 Jul 2014 16:19:45 -0700 Subject: qpeldsp: Mark source pointer in qpel_mc_func function pointer const --- libavcodec/h264qpel_template.c | 74 +++++++++++++++++++++--------------------- 1 file changed, 37 insertions(+), 37 deletions(-) (limited to 'libavcodec/h264qpel_template.c') diff --git a/libavcodec/h264qpel_template.c b/libavcodec/h264qpel_template.c index 963f7f1ae2..7dd901ce24 100644 --- a/libavcodec/h264qpel_template.c +++ b/libavcodec/h264qpel_template.c @@ -75,12 +75,12 @@ static inline void FUNC(copy_block16)(uint8_t *dst, const uint8_t *src, int dstS } #define H264_LOWPASS(OPNAME, OP, OP2) \ -static av_unused void FUNC(OPNAME ## h264_qpel2_h_lowpass)(uint8_t *_dst, uint8_t *_src, int dstStride, int srcStride){\ +static av_unused void FUNC(OPNAME ## h264_qpel2_h_lowpass)(uint8_t *_dst, const uint8_t *_src, int dstStride, int srcStride){\ const int h=2;\ INIT_CLIP\ int i;\ pixel *dst = (pixel*)_dst;\ - pixel *src = (pixel*)_src;\ + const pixel *src = (const pixel*)_src;\ dstStride /= sizeof(pixel);\ srcStride /= sizeof(pixel);\ for(i=0; i 9) ? (-10 * ((1< 9) ? (-10 * ((1< 9) ? (-10 * ((1<