Mercurial > libavcodec.hg
comparison 4xm.c @ 6199:879b1015a20f libavcodec
cast to dest type, fix warning: 4xm.c:304: warning: initialization from incompatible pointer type
author | bcoudurier |
---|---|
date | Thu, 31 Jan 2008 00:01:16 +0000 |
parents | 20fc1ce6b106 |
children | ddfd8aed3a3f |
comparison
equal
deleted
inserted
replaced
6198:e09251439406 | 6199:879b1015a20f |
---|---|
299 | 299 |
300 static void decode_p_block(FourXContext *f, uint16_t *dst, uint16_t *src, int log2w, int log2h, int stride){ | 300 static void decode_p_block(FourXContext *f, uint16_t *dst, uint16_t *src, int log2w, int log2h, int stride){ |
301 const int index= size2index[log2h][log2w]; | 301 const int index= size2index[log2h][log2w]; |
302 const int h= 1<<log2h; | 302 const int h= 1<<log2h; |
303 int code= get_vlc2(&f->gb, block_type_vlc[1-(f->version>1)][index].table, BLOCK_TYPE_VLC_BITS, 1); | 303 int code= get_vlc2(&f->gb, block_type_vlc[1-(f->version>1)][index].table, BLOCK_TYPE_VLC_BITS, 1); |
304 uint16_t *start= f->last_picture.data[0]; | 304 uint16_t *start= (uint16_t*)f->last_picture.data[0]; |
305 uint16_t *end= start + stride*(f->avctx->height-h+1) - (1<<log2w); | 305 uint16_t *end= start + stride*(f->avctx->height-h+1) - (1<<log2w); |
306 | 306 |
307 assert(code>=0 && code<=6); | 307 assert(code>=0 && code<=6); |
308 | 308 |
309 if(code == 0){ | 309 if(code == 0){ |