From 5d44b2a13874ef0718b522713a0b0199a7b8438c Mon Sep 17 00:00:00 2001
From: Kostya Shishkov <kostya.shishkov@gmail.com>
Date: Sun, 1 Feb 2009 14:44:51 +0000
Subject: [PATCH] Silence useless compiler warning when passing AVFrame*
 instead of AVPicture* to ff_msrle_decode()

Originally committed as revision 16915 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/aasc.c  | 2 +-
 libavcodec/bmp.c   | 2 +-
 libavcodec/msrle.c | 2 +-
 libavcodec/tscc.c  | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavcodec/aasc.c b/libavcodec/aasc.c
index 001ed3ab669..1f667801543 100644
--- a/libavcodec/aasc.c
+++ b/libavcodec/aasc.c
@@ -83,7 +83,7 @@ static int aasc_decode_frame(AVCodecContext *avctx,
         }
         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);
diff --git a/libavcodec/bmp.c b/libavcodec/bmp.c
index 9a20cd6c979..3d06f1965d6 100644
--- a/libavcodec/bmp.c
+++ b/libavcodec/bmp.c
@@ -240,7 +240,7 @@ static int bmp_decode_frame(AVCodecContext *avctx,
         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:
diff --git a/libavcodec/msrle.c b/libavcodec/msrle.c
index 002c35e7b3d..2b477d9427e 100644
--- a/libavcodec/msrle.c
+++ b/libavcodec/msrle.c
@@ -84,7 +84,7 @@ static int msrle_decode_frame(AVCodecContext *avctx,
         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;
diff --git a/libavcodec/tscc.c b/libavcodec/tscc.c
index 1db244412f3..0ffb1644ba8 100644
--- a/libavcodec/tscc.c
+++ b/libavcodec/tscc.c
@@ -105,7 +105,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const
 
 
     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) {
-- 
GitLab