Commit fca9bc58 authored by bcoudurier's avatar bcoudurier

cast to correct type, suppress warnings

git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@26948 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 7265dc8e
...@@ -2542,7 +2542,7 @@ int sws_scale(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, ...@@ -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
......
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