Mercurial > mplayer.hg
changeset 32174:6a1d3ea9a0c0
swscale: remove useless temporary variable
author | ramiro |
---|---|
date | Thu, 16 Sep 2010 01:09:59 +0000 |
parents | 2a28dda68bbc |
children | f002b9d0f4d1 |
files | libswscale/swscale.c |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libswscale/swscale.c Thu Sep 16 01:07:55 2010 +0000 +++ b/libswscale/swscale.c Thu Sep 16 01:09:59 2010 +0000 @@ -1317,12 +1317,10 @@ 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; } } }