aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/swscale-test.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-26 03:14:59 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-26 03:14:59 +0100
commitb36745339df026264007b6baaee50584a8a95c22 (patch)
tree2fa1ff94f0c8f41fc338c233b1a1f0e4f8b34464 /libswscale/swscale-test.c
parentfceeac9847350f2d9ca09ba1ac1667ff22814745 (diff)
downloadffmpeg-b36745339df026264007b6baaee50584a8a95c22.tar.gz
libswscale/swscale-test: fix some const correctness
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/swscale-test.c')
-rw-r--r--libswscale/swscale-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/swscale-test.c b/libswscale/swscale-test.c
index 40dec546b0..7e5f09e295 100644
--- a/libswscale/swscale-test.c
+++ b/libswscale/swscale-test.c
@@ -51,7 +51,7 @@
(x) == AV_PIX_FMT_RGB32_1 || \
(x) == AV_PIX_FMT_YUVA420P)
-static uint64_t getSSD(uint8_t *src1, uint8_t *src2, int stride1,
+static uint64_t getSSD(const uint8_t *src1, const uint8_t *src2, int stride1,
int stride2, int w, int h)
{
int x, y;
@@ -346,7 +346,7 @@ int main(int argc, char **argv)
enum AVPixelFormat srcFormat = AV_PIX_FMT_NONE;
enum AVPixelFormat dstFormat = AV_PIX_FMT_NONE;
uint8_t *rgb_data = av_malloc(W * H * 4);
- uint8_t *rgb_src[4] = { rgb_data, NULL, NULL, NULL };
+ const uint8_t * const rgb_src[4] = { rgb_data, NULL, NULL, NULL };
int rgb_stride[4] = { 4 * W, 0, 0, 0 };
uint8_t *data = av_malloc(4 * W * H);
uint8_t *src[4] = { data, data + W * H, data + W * H * 2, data + W * H * 3 };