aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-19 19:05:02 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-19 20:25:30 +0200
commitadaa274fa8a2ffbced2150798fb9cdd6d24e183e (patch)
tree64e2ea0e6c1b59d1c50c832a0877be585da924f0
parent6edd6a4f002d8ca51f1f60be3c26afced1ba9420 (diff)
downloadffmpeg-adaa274fa8a2ffbced2150798fb9cdd6d24e183e.tar.gz
tests/utils: make arguments const that arent changed
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--tests/utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/utils.c b/tests/utils.c
index e8ef06f7ef..dde6e03c41 100644
--- a/tests/utils.c
+++ b/tests/utils.c
@@ -35,12 +35,12 @@
} while (0)
static void rgb24_to_yuv420p(unsigned char *lum, unsigned char *cb,
- unsigned char *cr, unsigned char *src,
+ unsigned char *cr, const unsigned char *src,
int width, int height)
{
int wrap, wrap3, x, y;
int r, g, b, r1, g1, b1;
- unsigned char *p;
+ const unsigned char *p;
wrap = width;
wrap3 = width * 3;
@@ -104,7 +104,7 @@ static void rgb24_to_yuv420p(unsigned char *lum, unsigned char *cb,
#define DEFAULT_NB_PICT 50
static void pgmyuv_save(const char *filename, int w, int h,
- unsigned char *rgb_tab)
+ const unsigned char *rgb_tab)
{
FILE *f;
int i, h2, w2;