changeset 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 2dbf614093ea
children 42e258f2b931
files aasc.c bmp.c msrle.c tscc.c
diffstat 4 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/aasc.c	Sun Feb 01 14:07:08 2009 +0000
+++ b/aasc.c	Sun Feb 01 14:44:51 2009 +0000
@@ -83,7 +83,7 @@
         }
         break;
     case 1:
-        ff_msrle_decode(avctx, &s->frame, 8, buf - 4, buf_size + 4);
+        ff_msrle_decode(avctx, (AVPicture*)&s->frame, 8, buf - 4, buf_size + 4);
         break;
     default:
         av_log(avctx, AV_LOG_ERROR, "Unknown compression type %d\n", compr);
--- a/bmp.c	Sun Feb 01 14:07:08 2009 +0000
+++ b/bmp.c	Sun Feb 01 14:44:51 2009 +0000
@@ -240,7 +240,7 @@
         buf = buf0 + hsize;
     }
     if(comp == BMP_RLE4 || comp == BMP_RLE8){
-        ff_msrle_decode(avctx, p, depth, buf, dsize);
+        ff_msrle_decode(avctx, (AVPicture*)p, depth, buf, dsize);
     }else{
         switch(depth){
         case 1:
--- a/msrle.c	Sun Feb 01 14:07:08 2009 +0000
+++ b/msrle.c	Sun Feb 01 14:44:51 2009 +0000
@@ -84,7 +84,7 @@
         s->avctx->palctrl->palette_changed = 0;
     }
 
-    ff_msrle_decode(avctx, &s->frame, avctx->bits_per_coded_sample, buf, buf_size);
+    ff_msrle_decode(avctx, (AVPicture*)&s->frame, avctx->bits_per_coded_sample, buf, buf_size);
 
     *data_size = sizeof(AVFrame);
     *(AVFrame*)data = s->frame;
--- a/tscc.c	Sun Feb 01 14:07:08 2009 +0000
+++ b/tscc.c	Sun Feb 01 14:44:51 2009 +0000
@@ -105,7 +105,7 @@
 
 
     if(zret != Z_DATA_ERROR)
-        ff_msrle_decode(avctx, &c->pic, c->bpp, c->decomp_buf, c->zstream.avail_out);
+        ff_msrle_decode(avctx, (AVPicture*)&c->pic, c->bpp, c->decomp_buf, c->zstream.avail_out);
 
     /* make the palette available on the way out */
     if (c->avctx->pix_fmt == PIX_FMT_PAL8) {