swscale: remove useless temporary variable
Originally committed as revision 32258 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
parent
cf1cd520c6
commit
5a90173751
@ -1317,12 +1317,10 @@ static void copyPlane(const uint8_t *src, int srcStride,
|
||||
memcpy(dst, src, srcSliceH * dstStride);
|
||||
} else {
|
||||
int i;
|
||||
const uint8_t *srcPtr = src;
|
||||
uint8_t *dstPtr= dst;
|
||||
for (i=0; i<srcSliceH; i++) {
|
||||
memcpy(dstPtr, srcPtr, width);
|
||||
srcPtr += srcStride;
|
||||
dstPtr += dstStride;
|
||||
memcpy(dst, src, width);
|
||||
src += srcStride;
|
||||
dst += dstStride;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user