[FFmpeg-cvslog] avcodec/kgv1dec: add casts to silence " assignment from incompatible pointer type"

Michael Niedermayer git at videolan.org
Sat May 3 22:16:09 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat May  3 22:09:26 2014 +0200| [5918c5a4ccd7433956fc51a233126ac7da64aabc] | committer: Michael Niedermayer

avcodec/kgv1dec: add casts to silence "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=5918c5a4ccd7433956fc51a233126ac7da64aabc
---

 libavcodec/kgv1dec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/kgv1dec.c b/libavcodec/kgv1dec.c
index edbc2b2..b81ba75 100644
--- a/libavcodec/kgv1dec.c
+++ b/libavcodec/kgv1dec.c
@@ -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;



More information about the ffmpeg-cvslog mailing list