mirror of https://github.com/mpv-player/mpv
cast to correct type, suppress warnings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26949 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f8ac253ab4
commit
3b5904ef9a
|
@ -1849,7 +1849,7 @@ static int gray16swap(SwsContext *c, uint8_t* src[], int srcStride[], int srcSli
|
|||
int height= srcSliceH;
|
||||
int i, j;
|
||||
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 (j=0; j<length; j++) dstPtr[j] = bswap_16(srcPtr[j]);
|
||||
|
|
Loading…
Reference in New Issue