From b0ddba1291a62ffd7d4ee0dc50ebc540c3651760 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 2 Feb 2008 17:12:17 +0000 Subject: [PATCH] void arithmetic Originally committed as revision 11812 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libpostproc/postprocess_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpostproc/postprocess_internal.h b/libpostproc/postprocess_internal.h index 5abd30f2ea..2444016673 100644 --- a/libpostproc/postprocess_internal.h +++ b/libpostproc/postprocess_internal.h @@ -171,7 +171,7 @@ static inline void linecpy(void *dest, void *src, int lines, int stride) if (stride > 0) { memcpy(dest, src, lines*stride); } else { - memcpy(dest+(lines-1)*stride, src+(lines-1)*stride, -lines*stride); + memcpy((uint8_t*)dest+(lines-1)*stride, (const uint8_t*)src+(lines-1)*stride, -lines*stride); } }