aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/exr.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-02-14 12:22:43 +0000
committerPaul B Mahol <onemda@gmail.com>2015-02-22 17:30:50 +0000
commit586ba24ff29468d2a4ee843a9650feea5b2be6f6 (patch)
tree40ef4d710701c10a5028927f07b264497f8700ab /libavcodec/exr.c
parent9b8152bf047bbebe4495b993258591687bcdd36d (diff)
downloadffmpeg-586ba24ff29468d2a4ee843a9650feea5b2be6f6.tar.gz
avcodec/exr: fix memset first arg in reverse_lut()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/exr.c')
-rw-r--r--libavcodec/exr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index f9525ecf02..6251fb76fd 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, 0, (USHORT_RANGE - k) * 2);
+ memset(lut + k * 2, 0, (USHORT_RANGE - k) * 2);
return i;
}