From 6bf9786a9bd0446bde523077a5bf2991f72acb8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Thu, 13 Nov 2014 23:40:56 +0100 Subject: [PATCH] avfilter/xbr: mark source pointers as const --- libavfilter/vf_xbr.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/libavfilter/vf_xbr.c b/libavfilter/vf_xbr.c index 26f849994f..f6d782bf80 100644 --- a/libavfilter/vf_xbr.c +++ b/libavfilter/vf_xbr.c @@ -139,15 +139,15 @@ static void xbr2x(AVFrame * input, AVFrame * output, const uint32_t * r2y) uint32_t * E = (uint32_t *)(output->data[0] + y * output->linesize[0] * 2); /* middle. Offset of -8 is given */ - uint32_t * sa2 = (uint32_t *)(input->data[0] + y * input->linesize[0] - 8); + const uint32_t *sa2 = (uint32_t *)(input->data[0] + y * input->linesize[0] - 8); /* up one */ - uint32_t * sa1 = sa2 - (input->linesize[0]>>2); + const uint32_t *sa1 = sa2 - (input->linesize[0]>>2); /* up two */ - uint32_t * sa0 = sa1 - (input->linesize[0]>>2); + const uint32_t *sa0 = sa1 - (input->linesize[0]>>2); /* down one */ - uint32_t * sa3 = sa2 + (input->linesize[0]>>2); + const uint32_t *sa3 = sa2 + (input->linesize[0]>>2); /* down two */ - uint32_t * sa4 = sa3 + (input->linesize[0]>>2); + const uint32_t *sa4 = sa3 + (input->linesize[0]>>2); if (y <= 1) { sa0 = sa1; @@ -265,15 +265,15 @@ static void xbr3x(AVFrame *input, AVFrame *output, const uint32_t *r2y) uint32_t * E = (uint32_t *)(output->data[0] + y * output->linesize[0] * 3); /* middle. Offset of -8 is given */ - uint32_t * sa2 = (uint32_t *)(input->data[0] + y * input->linesize[0] - 8); + const uint32_t *sa2 = (uint32_t *)(input->data[0] + y * input->linesize[0] - 8); /* up one */ - uint32_t * sa1 = sa2 - (input->linesize[0]>>2); + const uint32_t *sa1 = sa2 - (input->linesize[0]>>2); /* up two */ - uint32_t * sa0 = sa1 - (input->linesize[0]>>2); + const uint32_t *sa0 = sa1 - (input->linesize[0]>>2); /* down one */ - uint32_t * sa3 = sa2 + (input->linesize[0]>>2); + const uint32_t *sa3 = sa2 + (input->linesize[0]>>2); /* down two */ - uint32_t * sa4 = sa3 + (input->linesize[0]>>2); + const uint32_t *sa4 = sa3 + (input->linesize[0]>>2); if (y <= 1){ sa0 = sa1; @@ -399,15 +399,15 @@ static void xbr4x(AVFrame *input, AVFrame *output, const uint32_t *r2y) uint32_t * E = (uint32_t *)(output->data[0] + y * output->linesize[0] * 4); /* middle. Offset of -8 is given */ - uint32_t * sa2 = (uint32_t *)(input->data[0] + y * input->linesize[0] - 8); + const uint32_t *sa2 = (uint32_t *)(input->data[0] + y * input->linesize[0] - 8); /* up one */ - uint32_t * sa1 = sa2 - (input->linesize[0]>>2); + const uint32_t *sa1 = sa2 - (input->linesize[0]>>2); /* up two */ - uint32_t * sa0 = sa1 - (input->linesize[0]>>2); + const uint32_t *sa0 = sa1 - (input->linesize[0]>>2); /* down one */ - uint32_t * sa3 = sa2 + (input->linesize[0]>>2); + const uint32_t *sa3 = sa2 + (input->linesize[0]>>2); /* down two */ - uint32_t * sa4 = sa3 + (input->linesize[0]>>2); + const uint32_t *sa4 = sa3 + (input->linesize[0]>>2); if (y <= 1) { sa0 = sa1;