diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2010-09-16 01:09:59 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2010-09-16 01:09:59 +0000 |
commit | 5a90173751672e5026b36acf7f0e52962f7a4582 (patch) | |
tree | 2cf9e508dc5161f05a0021c78d2db9fb3ef88632 /libswscale | |
parent | cf1cd520c6a30bd4e8845c0dc69ba831213c19fd (diff) | |
download | ffmpeg-5a90173751672e5026b36acf7f0e52962f7a4582.tar.gz |
swscale: remove useless temporary variable
Originally committed as revision 32258 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/swscale.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 9b49477321..fbfc006a98 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -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; } } } |