From 9008aed514f7211f6fcad328277ce464b042f622 Mon Sep 17 00:00:00 2001 From: Hamsalekha S Date: Mon, 8 May 2017 17:21:56 +0530 Subject: [PATCH] Decoder: Fixed allocation size of pred info buffer Buffer allocation size for pred info was increased in the case number reference frames equal to 1. Bug: 36998372 Change-Id: I1f84a16703422109d40bed8436f35d0c2069c088 --- decoder/ih264d_utils.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/decoder/ih264d_utils.c b/decoder/ih264d_utils.c index 8d02d0e..96bf1a3 100644 --- a/decoder/ih264d_utils.c +++ b/decoder/ih264d_utils.c @@ -1998,10 +1998,7 @@ WORD16 ih264d_allocate_dynamic_bufs(dec_struct_t * ps_dec) /* Allocate memory for packed pred info */ num_entries = u4_total_mbs; - if(1 == ps_dec->ps_cur_sps->u1_num_ref_frames) - num_entries *= 16; - else - num_entries *= 16 * 2; + num_entries *= 16 * 2; size = sizeof(pred_info_pkd_t) * num_entries; pv_buf = ps_dec->pf_aligned_alloc(pv_mem_ctxt, 128, size);