Commit b8b015f4 authored by Baptiste Coudurier's avatar Baptiste Coudurier

cast to correct type, suppress warnings

Originally committed as revision 26949 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
parent 74498eb4
...@@ -1849,7 +1849,7 @@ static int gray16swap(SwsContext *c, uint8_t* src[], int srcStride[], int srcSli ...@@ -1849,7 +1849,7 @@ static int gray16swap(SwsContext *c, uint8_t* src[], int srcStride[], int srcSli
int height= srcSliceH; int height= srcSliceH;
int i, j; int i, j;
uint16_t *srcPtr= (uint16_t*)src[0]; uint16_t *srcPtr= (uint16_t*)src[0];
uint16_t *dstPtr= dst[0] + dstStride[0]*y/2; uint16_t *dstPtr= (uint16_t*)(dst[0] + dstStride[0]*y/2);
for (i=0; i<height; i++) for (i=0; i<height; i++)
{ {
for (j=0; j<length; j++) dstPtr[j] = bswap_16(srcPtr[j]); for (j=0; j<length; j++) dstPtr[j] = bswap_16(srcPtr[j]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment