Mercurial > mplayer.hg
comparison libswscale/swscale.c @ 32174:6a1d3ea9a0c0
swscale: remove useless temporary variable
author | ramiro |
---|---|
date | Thu, 16 Sep 2010 01:09:59 +0000 |
parents | 2a28dda68bbc |
children | ecb8e52d4add |
comparison
equal
deleted
inserted
replaced
32173:2a28dda68bbc | 32174:6a1d3ea9a0c0 |
---|---|
1315 dst += dstStride * srcSliceY; | 1315 dst += dstStride * srcSliceY; |
1316 if (dstStride == srcStride && srcStride > 0) { | 1316 if (dstStride == srcStride && srcStride > 0) { |
1317 memcpy(dst, src, srcSliceH * dstStride); | 1317 memcpy(dst, src, srcSliceH * dstStride); |
1318 } else { | 1318 } else { |
1319 int i; | 1319 int i; |
1320 const uint8_t *srcPtr = src; | |
1321 uint8_t *dstPtr= dst; | |
1322 for (i=0; i<srcSliceH; i++) { | 1320 for (i=0; i<srcSliceH; i++) { |
1323 memcpy(dstPtr, srcPtr, width); | 1321 memcpy(dst, src, width); |
1324 srcPtr += srcStride; | 1322 src += srcStride; |
1325 dstPtr += dstStride; | 1323 dst += dstStride; |
1326 } | 1324 } |
1327 } | 1325 } |
1328 } | 1326 } |
1329 | 1327 |
1330 static int planarToNv12Wrapper(SwsContext *c, const uint8_t* src[], int srcStride[], int srcSliceY, | 1328 static int planarToNv12Wrapper(SwsContext *c, const uint8_t* src[], int srcStride[], int srcSliceY, |