From 7f4d2d830800ab650c56973253de7482545ef838 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Thu, 31 Jan 2008 00:01:16 +0000 Subject: [PATCH] cast to dest type, fix warning: 4xm.c:304: warning: initialization from incompatible pointer type Originally committed as revision 11676 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/4xm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c index 72c8dbf9dd7..dbcf47a2fb3 100644 --- a/libavcodec/4xm.c +++ b/libavcodec/4xm.c @@ -301,7 +301,7 @@ static void decode_p_block(FourXContext *f, uint16_t *dst, uint16_t *src, int lo const int index= size2index[log2h][log2w]; const int h= 1<gb, block_type_vlc[1-(f->version>1)][index].table, BLOCK_TYPE_VLC_BITS, 1); - uint16_t *start= f->last_picture.data[0]; + uint16_t *start= (uint16_t*)f->last_picture.data[0]; uint16_t *end= start + stride*(f->avctx->height-h+1) - (1<=0 && code<=6); -- 2.39.2