diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-04-01 19:53:23 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-11 22:01:46 +0200 |
commit | fa538f1a8c33eed6dca8a67656ace6398a0ce323 (patch) | |
tree | 9ef2b02c5b6370fc4fdb83051a8f12744021ef7c | |
parent | 7689fe5cfd28b2937f7a3497ed49a3d70de075e0 (diff) | |
download | ffmpeg-fa538f1a8c33eed6dca8a67656ace6398a0ce323.tar.gz |
Revert "avcodec/exr: fix memset first arg in reverse_lut()"
This reverts commit 586ba24ff29468d2a4ee843a9650feea5b2be6f6.
Fixes Ticket 4386
Found-by: Martin Vignali <martin.vignali@gmail.com>
(cherry picked from commit 5dd5b7d5312d2b7cb6d3dbfde12f1eaef7c7767f)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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 6251fb76fd..f9525ecf02 100644 --- a/libavcodec/exr.c +++ b/libavcodec/exr.c @@ -322,7 +322,7 @@ static uint16_t reverse_lut(const uint8_t *bitmap, uint16_t *lut) i = k - 1; - memset(lut + k * 2, 0, (USHORT_RANGE - k) * 2); + memset(lut + k, 0, (USHORT_RANGE - k) * 2); return i; } |