# HG changeset patch # User bcoudurier # Date 1212291327 0 # Node ID 03e1725b58426de16e380d7cb6734a883c176b7c # Parent 0348d37f5933e75597dc9a512dc02496665aec49 cast to correct type, suppress warnings diff -r 0348d37f5933 -r 03e1725b5842 libswscale/swscale.c --- a/libswscale/swscale.c Sun Jun 01 03:34:39 2008 +0000 +++ b/libswscale/swscale.c Sun Jun 01 03:35:27 2008 +0000 @@ -2542,7 +2542,7 @@ 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