tests/utils: make arguments const that arent changed

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-09-19 19:05:02 +02:00
parent 6edd6a4f00
commit adaa274fa8
1 changed files with 3 additions and 3 deletions

View File

@ -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;