avcodec/exr: fix memset first arg in reverse_lut()
authorPaul B Mahol <onemda@gmail.com>
Sat, 14 Feb 2015 12:22:43 +0000 (12:22 +0000)
committerPaul B Mahol <onemda@gmail.com>
Sun, 22 Feb 2015 17:30:50 +0000 (17:30 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/exr.c

index f9525ec..6251fb7 100644 (file)
@@ -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;
 }