cast to correct type, suppress warnings

Originally committed as revision 26948 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
pull/126/head
Baptiste Coudurier 17 years ago
parent 73d046e21f
commit 74498eb44b
  1. 2
      libswscale/swscale.c

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

Loading…
Cancel
Save