rawdec: fix "warning: assignment from incompatible pointer type"
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 22 Sep 2012 03:09:06 +0000 (05:09 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 22 Sep 2012 11:48:40 +0000 (13:48 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/rawdec.c

index 50bd7f3..75b5783 100644 (file)
@@ -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);