1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

cast to dest type, fix warning imgconvert.c:1958: warning: assignment from incompatible pointer type

Originally committed as revision 11675 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2008-01-31 00:00:08 +00:00
parent 29e15adc34
commit e151e272a0

View File

@ -1901,9 +1901,9 @@ static void gray16_to_gray16(AVPicture *dst, const AVPicture *src,
{
int x, y, src_wrap, dst_wrap;
uint16_t *s, *d;
s = src->data[0];
s = (uint16_t*)src->data[0];
src_wrap = (src->linesize[0] - width * 2)/2;
d = dst->data[0];
d = (uint16_t*)dst->data[0];
dst_wrap = (dst->linesize[0] - width * 2)/2;
for(y=0; y<height; y++){
for(x=0; x<width; x++){