cast to correct type, suppress warnings

Originally committed as revision 26948 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
Baptiste Coudurier 2008-06-01 03:35:27 +00:00
parent 73d046e21f
commit 74498eb44b

View File

@ -2542,7 +2542,7 @@ int sws_scale(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
int v= av_clip_uint8(((RV*r + GV*g + BV*b)>>RGB2YUV_SHIFT) + 128);
pal[i]= y + (u<<8) + (v<<16);
}
src2[1]= pal;
src2[1]= (uint8_t*)pal;
}
// copy strides, so they can safely be modified