void arithmetic

Originally committed as revision 11812 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-02-02 17:12:17 +00:00
parent 1bc0a44d79
commit b0ddba1291
1 changed files with 1 additions and 1 deletions

View 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);
}
}