[FFmpeg-cvslog] avcodec/tiff: remove the unnecessary type conversion

Limin Wang git at videolan.org
Fri May 8 04:23:16 EEST 2020


ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Thu Sep 12 17:23:41 2019 +0800| [1b3d5090c5b9955887ba6743084bbda1eb50439b] | committer: Limin Wang

avcodec/tiff: remove the unnecessary type conversion

Reviewed-by: Carl Eugen Hoyos <ceffmpeg at gmail.com>
Signed-off-by: Limin Wang <lance.lmwang at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1b3d5090c5b9955887ba6743084bbda1eb50439b
---

 libavcodec/tiff.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 45cb225d0a..5e4f424b67 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;



More information about the ffmpeg-cvslog mailing list