diff options
author | Diego Biurrun <diego@biurrun.de> | 2015-12-06 12:45:10 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2017-01-24 13:03:57 +0100 |
commit | 5c0e2b13eb79b455b15355d64f7993b0f66ea9ec (patch) | |
tree | 50058382fdbcfb4cd65548b1ffed8dc61c792f65 /libswscale | |
parent | 7ff018c1cb43a5fe5ee2049d325cdd785852067a (diff) | |
download | ffmpeg-5c0e2b13eb79b455b15355d64f7993b0f66ea9ec.tar.gz |
swscale-test: const correctness for pointer variable
libswscale/swscale-test.c:369:20: warning: passing argument 2 of ‘sws_scale’ from incompatible pointer type [-Wincompatible-pointer-types]
libswscale/swscale.h:207:5: note: expected ‘const uint8_t * const* {aka const unsigned char * const*}’ but argument is of type ‘uint8_t ** {aka unsigned char **}’
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/tests/swscale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/tests/swscale.c b/libswscale/tests/swscale.c index 853a8a7231..364e2a75eb 100644 --- a/libswscale/tests/swscale.c +++ b/libswscale/tests/swscale.c @@ -345,7 +345,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 *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 }; |