[FFmpeg-cvslog] r16915 - in trunk/libavcodec: aasc.c bmp.c msrle.c tscc.c

kostya subversion
Sun Feb 1 15:44:51 CET 2009


Author: kostya
Date: Sun Feb  1 15:44:51 2009
New Revision: 16915

Log:
Silence useless compiler warning when passing AVFrame* instead of AVPicture*
to ff_msrle_decode()

Modified:
   trunk/libavcodec/aasc.c
   trunk/libavcodec/bmp.c
   trunk/libavcodec/msrle.c
   trunk/libavcodec/tscc.c

Modified: trunk/libavcodec/aasc.c
==============================================================================
--- trunk/libavcodec/aasc.c	Sun Feb  1 15:07:08 2009	(r16914)
+++ trunk/libavcodec/aasc.c	Sun Feb  1 15:44:51 2009	(r16915)
@@ -83,7 +83,7 @@ static int aasc_decode_frame(AVCodecCont
         }
         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);

Modified: trunk/libavcodec/bmp.c
==============================================================================
--- trunk/libavcodec/bmp.c	Sun Feb  1 15:07:08 2009	(r16914)
+++ trunk/libavcodec/bmp.c	Sun Feb  1 15:44:51 2009	(r16915)
@@ -240,7 +240,7 @@ static int bmp_decode_frame(AVCodecConte
         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:

Modified: trunk/libavcodec/msrle.c
==============================================================================
--- trunk/libavcodec/msrle.c	Sun Feb  1 15:07:08 2009	(r16914)
+++ trunk/libavcodec/msrle.c	Sun Feb  1 15:44:51 2009	(r16915)
@@ -84,7 +84,7 @@ static int msrle_decode_frame(AVCodecCon
         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;

Modified: trunk/libavcodec/tscc.c
==============================================================================
--- trunk/libavcodec/tscc.c	Sun Feb  1 15:07:08 2009	(r16914)
+++ trunk/libavcodec/tscc.c	Sun Feb  1 15:44:51 2009	(r16915)
@@ -105,7 +105,7 @@ static int decode_frame(AVCodecContext *
 
 
     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) {




More information about the ffmpeg-cvslog mailing list