Mercurial > libavcodec.hg
comparison tscc.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 | e9d9d946f213 |
children | 54bc8a2727b0 |
comparison
equal
deleted
inserted
replaced
8719:2dbf614093ea | 8720:052c676c433b |
---|---|
103 return -1; | 103 return -1; |
104 } | 104 } |
105 | 105 |
106 | 106 |
107 if(zret != Z_DATA_ERROR) | 107 if(zret != Z_DATA_ERROR) |
108 ff_msrle_decode(avctx, &c->pic, c->bpp, c->decomp_buf, c->zstream.avail_out); | 108 ff_msrle_decode(avctx, (AVPicture*)&c->pic, c->bpp, c->decomp_buf, c->zstream.avail_out); |
109 | 109 |
110 /* make the palette available on the way out */ | 110 /* make the palette available on the way out */ |
111 if (c->avctx->pix_fmt == PIX_FMT_PAL8) { | 111 if (c->avctx->pix_fmt == PIX_FMT_PAL8) { |
112 memcpy(c->pic.data[1], c->avctx->palctrl->palette, AVPALETTE_SIZE); | 112 memcpy(c->pic.data[1], c->avctx->palctrl->palette, AVPALETTE_SIZE); |
113 if (c->avctx->palctrl->palette_changed) { | 113 if (c->avctx->palctrl->palette_changed) { |