avcodec/kgv1dec: add casts to silence "assignment from incompatible pointer type"
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 3 May 2014 20:09:26 +0000 (22:09 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 3 May 2014 20:09:26 +0000 (22:09 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/kgv1dec.c

index edbc2b2..b81ba75 100644 (file)
@@ -82,8 +82,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
 
     if ((res = ff_get_buffer(avctx, frame, 0)) < 0)
         return res;
-    out  = c->frame_buffer;
-    prev = c->last_frame_buffer;
+    out  = (uint8_t*)c->frame_buffer;
+    prev = (uint8_t*)c->last_frame_buffer;
 
     for (i = 0; i < 8; i++)
         offsets[i] = -1;