From 954bca7d6ed9c8d1706be744d76b5866d61cbbf0 Mon Sep 17 00:00:00 2001 From: Sebastien Alaiwan Date: Thu, 17 May 2018 11:24:49 +0200 Subject: [PATCH] Fix memset parameter --- src/kvazaar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kvazaar.c b/src/kvazaar.c index 2e14ec0a..6c4369f2 100644 --- a/src/kvazaar.c +++ b/src/kvazaar.c @@ -142,8 +142,8 @@ static void set_frame_info(kvz_frame_info *const info, const encoder_state_t *co info->nal_unit_type = state->frame->pictype; info->slice_type = state->frame->slicetype; - memset(info->ref_list[0], 0, 16); - memset(info->ref_list[1], 0, 16); + memset(info->ref_list[0], 0, 16 * sizeof(int)); + memset(info->ref_list[1], 0, 16 * sizeof(int)); for (size_t i = 0; i < state->frame->ref_LX_size[0]; i++) { info->ref_list[0][i] = state->frame->ref->pocs[state->frame->ref_LX[0][i]];