mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/exr: fix clearing end of bitmap
Inspired by patch from Martin Vignali. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
5ce703a6bf
commit
392b0a25c2
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user