[FFmpeg-cvslog] avcodec/tiff: Clear deinvert_buf_size on deallocation
Michael Niedermayer
git at videolan.org
Sun Jun 4 15:03:51 EEST 2017
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Jun 4 00:25:09 2017 +0200| [98256595fae197fa9dcdb19e72b138ef05a21bea] | committer: Michael Niedermayer
avcodec/tiff: Clear deinvert_buf_size on deallocation
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=98256595fae197fa9dcdb19e72b138ef05a21bea
---
libavcodec/tiff.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index b96caeb8ce..69e8d1683a 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -1411,6 +1411,7 @@ static av_cold int tiff_end(AVCodecContext *avctx)
ff_lzw_decode_close(&s->lzw);
av_freep(&s->deinvert_buf);
+ s->deinvert_buf_size = 0;
av_freep(&s->fax_buffer);
s->fax_buffer_size = 0;
return 0;
More information about the ffmpeg-cvslog
mailing list