void arithmetic
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 2 Feb 2008 17:12:17 +0000 (17:12 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 2 Feb 2008 17:12:17 +0000 (17:12 +0000)
Originally committed as revision 11812 to svn://svn.ffmpeg.org/ffmpeg/trunk

libpostproc/postprocess_internal.h

index 5abd30f..2444016 100644 (file)
@@ -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);
         }
 }