aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-02 17:12:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-02 17:12:42 +0200
commit41a679000f22884017107e90bfbcf2069c69d08c (patch)
tree73c7ee78b51251b7940ad432b4e0a678c53d6020
parentc60b266eac18e69382a965a375233e3bbfa91229 (diff)
downloadffmpeg-41a679000f22884017107e90bfbcf2069c69d08c.tar.gz
avcodec/mpegvideo: fix gray*() parameter types
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/mpegvideo.c4
1 files 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);