[FFmpeg-cvslog] avcodec/exr: fix memset first arg in reverse_lut()

Paul B Mahol git at videolan.org
Sun Feb 22 18:31:05 CET 2015


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Feb 14 12:22:43 2015 +0000| [586ba24ff29468d2a4ee843a9650feea5b2be6f6] | committer: Paul B Mahol

avcodec/exr: fix memset first arg in reverse_lut()

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=586ba24ff29468d2a4ee843a9650feea5b2be6f6
---

 libavcodec/exr.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index f9525ec..6251fb7 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;
 }



More information about the ffmpeg-cvslog mailing list