From 41a679000f22884017107e90bfbcf2069c69d08c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 2 May 2014 17:12:26 +0200 Subject: [PATCH] avcodec/mpegvideo: fix gray*() parameter types Signed-off-by: Michael Niedermayer --- libavcodec/mpegvideo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index ae507d0069..8730343088 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -340,13 +340,13 @@ static void mpeg_er_decode_mb(void *opaque, int ref, int mv_dir, int mv_type, ff_MPV_decode_mb(s, s->block); } -static void gray16(uint8_t *dst, uint8_t *src, int linesize, int h) +static void gray16(uint8_t *dst, const uint8_t *src, ptrdiff_t linesize, int h) { while(h--) memset(dst + h*linesize, 128, 16); } -static void gray8(uint8_t *dst, uint8_t *src, int linesize, int h) +static void gray8(uint8_t *dst, const uint8_t *src, ptrdiff_t linesize, int h) { while(h--) memset(dst + h*linesize, 128, 8);