]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/zmbv: remove the unnecessary type conversion
authorLimin Wang <lance.lmwang@gmail.com>
Thu, 12 Sep 2019 09:23:42 +0000 (17:23 +0800)
committerLimin Wang <lance.lmwang@gmail.com>
Fri, 8 May 2020 01:11:56 +0000 (09:11 +0800)
Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
libavcodec/zmbv.c

index 02599bf03d9079bb7878d3857cfb8ae2b60d9fbd..e3ccc16d0bca484973969ec48fa3e1958d8c269a 100644 (file)
@@ -536,7 +536,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac
         c->decomp_len = len;
     } else { // ZLIB-compressed data
         c->zstream.total_in = c->zstream.total_out = 0;
-        c->zstream.next_in = (uint8_t*)buf;
+        c->zstream.next_in = buf;
         c->zstream.avail_in = len;
         c->zstream.next_out = c->decomp_buf;
         c->zstream.avail_out = c->decomp_size;