From 6a5cb800683fa45862267a44446d0492c867215c Mon Sep 17 00:00:00 2001 From: Hamsalekha S Date: Mon, 8 May 2017 18:59:04 +0530 Subject: [PATCH] DO NOT MERGE 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_api.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/decoder/ih264d_api.c b/decoder/ih264d_api.c index 27f4ad0..bb458bd 100644 --- a/decoder/ih264d_api.c +++ b/decoder/ih264d_api.c @@ -2361,10 +2361,8 @@ WORD32 ih264d_fill_num_mem_rec(void *pv_api_ip, void *pv_api_op) UWORD32 u4_num_entries; u4_num_entries = u4_total_num_mbs; - if(1 == num_ref_frames) - u4_num_entries *= 16; - else - u4_num_entries *= 16 * 2; + + u4_num_entries *= 16 * 2; memTab[MEM_REC_PRED_INFO_PKD].u4_mem_size = sizeof(pred_info_pkd_t) * u4_num_entries;