Commit 41a67900 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpegvideo: fix gray*() parameter types

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c60b266e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment