diff options
author | Paul B Mahol <onemda@gmail.com> | 2016-04-12 21:39:32 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-04-12 22:54:56 +0200 |
commit | 392b0a25c236e7dc7e4976a5f1bed7485f801059 (patch) | |
tree | 6e995d64bb6597e44522468a9847c9c119d8d5ce /libavcodec/exr.c | |
parent | 5ce703a6bff77af1be9f2eb2698879c591b403c4 (diff) | |
download | ffmpeg-392b0a25c236e7dc7e4976a5f1bed7485f801059.tar.gz |
avcodec/exr: fix clearing end of bitmap
Inspired by patch from Martin Vignali.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/exr.c')
-rw-r--r-- | libavcodec/exr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/exr.c b/libavcodec/exr.c index 9dd2ee961a..250d99fedb 100644 --- a/libavcodec/exr.c +++ b/libavcodec/exr.c @@ -768,7 +768,7 @@ static int piz_uncompress(EXRContext *s, const uint8_t *src, int ssize, if (min_non_zero <= max_non_zero) bytestream2_get_buffer(&gb, td->bitmap + min_non_zero, max_non_zero - min_non_zero + 1); - memset(td->bitmap + max_non_zero, 0, BITMAP_SIZE - max_non_zero); + memset(td->bitmap + max_non_zero + 1, 0, BITMAP_SIZE - max_non_zero - 1); maxval = reverse_lut(td->bitmap, td->lut); |