diff mbox

[FFmpeg-devel,v1,3/4] avcodec/tiff: remove the unnecessary type conversion

Message ID 20190912092342.16465-3-lance.lmwang@gmail.com
State Accepted
Commit 1b3d5090c5b9955887ba6743084bbda1eb50439b
Headers show

Commit Message

Lance Wang Sept. 12, 2019, 9:23 a.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

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

Patch

diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 9f24796a88..4843a11f3d 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -393,7 +393,7 @@  static int tiff_uncompress(uint8_t *dst, unsigned long *len, const uint8_t *src,
     z_stream zstream = { 0 };
     int zret;
 
-    zstream.next_in   = (uint8_t *)src;
+    zstream.next_in   = src;
     zstream.avail_in  = size;
     zstream.next_out  = dst;
     zstream.avail_out = *len;