zmbv: Fix warning about discarded qualifier
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 27 Jul 2012 10:43:15 +0000 (12:43 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 27 Jul 2012 10:43:15 +0000 (12:43 +0200)
Based on patch by: jamal <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/zmbv.c

index b7ebaf9..74212f2 100644 (file)
@@ -505,7 +505,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
         c->decomp_size = 1;
     } else { // ZLIB-compressed data
         c->zstream.total_in = c->zstream.total_out = 0;
-        c->zstream.next_in = buf;
+        c->zstream.next_in = (uint8_t*)buf;
         c->zstream.avail_in = len;
         c->zstream.next_out = c->decomp_buf;
         c->zstream.avail_out = c->decomp_size;