Mercurial > libavcodec.hg
changeset 6198:e09251439406 libavcodec
cast to dest type, fix warning imgconvert.c:1958: warning: assignment from incompatible pointer type
author | bcoudurier |
---|---|
date | Thu, 31 Jan 2008 00:00:08 +0000 |
parents | 2ca0a91b0b24 |
children | 879b1015a20f |
files | imgconvert.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/imgconvert.c Wed Jan 30 23:58:44 2008 +0000 +++ b/imgconvert.c Thu Jan 31 00:00:08 2008 +0000 @@ -1901,9 +1901,9 @@ { 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++){