comparison bmp.c @ 8720:052c676c433b libavcodec

Silence useless compiler warning when passing AVFrame* instead of AVPicture* to ff_msrle_decode()
author kostya
date Sun, 01 Feb 2009 14:44:51 +0000
parents 507854688c43
children 3ce78c919959
comparison
equal deleted inserted replaced
8719:2dbf614093ea 8720:052c676c433b
238 ((uint32_t*)p->data[1])[i] = bytestream_get_le32(&buf); 238 ((uint32_t*)p->data[1])[i] = bytestream_get_le32(&buf);
239 } 239 }
240 buf = buf0 + hsize; 240 buf = buf0 + hsize;
241 } 241 }
242 if(comp == BMP_RLE4 || comp == BMP_RLE8){ 242 if(comp == BMP_RLE4 || comp == BMP_RLE8){
243 ff_msrle_decode(avctx, p, depth, buf, dsize); 243 ff_msrle_decode(avctx, (AVPicture*)p, depth, buf, dsize);
244 }else{ 244 }else{
245 switch(depth){ 245 switch(depth){
246 case 1: 246 case 1:
247 for(i = 0; i < avctx->height; i++){ 247 for(i = 0; i < avctx->height; i++){
248 memcpy(ptr, buf, n); 248 memcpy(ptr, buf, n);