[FFmpeg-cvslog] rawdec: fix "warning: assignment from incompatible pointer type"

Michael Niedermayer git at videolan.org
Sat Sep 22 13:59:18 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Sep 22 05:09:06 2012 +0200| [79bf1f0ad03f17bb00913fdef6e955d3c46c8a92] | committer: Michael Niedermayer

rawdec: fix "warning: assignment from incompatible pointer type"

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=79bf1f0ad03f17bb00913fdef6e955d3c46c8a92
---

 libavcodec/rawdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index 50bd7f3..75b5783 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -208,7 +208,7 @@ static int raw_decode(AVCodecContext *avctx,
         return res;
     if((avctx->pix_fmt==PIX_FMT_PAL8 && buf_size < context->length) ||
        (av_pix_fmt_descriptors[avctx->pix_fmt].flags & PIX_FMT_PSEUDOPAL)) {
-        frame->data[1]= context->palette;
+        frame->data[1]= (uint8_t*)context->palette;
     }
     if (avctx->pix_fmt == PIX_FMT_PAL8) {
         const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, NULL);



More information about the ffmpeg-cvslog mailing list