[FFmpeg-cvslog] avcodec/mpegvideo: fix gray*() parameter types

Michael Niedermayer git at videolan.org
Fri May 2 18:38:04 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri May  2 17:12:26 2014 +0200| [41a679000f22884017107e90bfbcf2069c69d08c] | committer: Michael Niedermayer

avcodec/mpegvideo: fix gray*() parameter types

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=41a679000f22884017107e90bfbcf2069c69d08c
---

 libavcodec/mpegvideo.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index ae507d0..8730343 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);



More information about the ffmpeg-cvslog mailing list