[FFmpeg-devel] [PATCH v1 4/4] avcodec/zmbv: remove the unnecessary type conversion

lance.lmwang at gmail.com lance.lmwang at gmail.com
Thu Sep 12 12:23:42 EEST 2019


From: Limin Wang <lance.lmwang at gmail.com>

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
---
 libavcodec/zmbv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c
index 99e735cfd9..ace13e2ada 100644
--- a/libavcodec/zmbv.c
+++ b/libavcodec/zmbv.c
@@ -542,7 +542,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;
-- 
2.21.0



More information about the ffmpeg-devel mailing list