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
(cherry picked from commit 9008aed514f7211f6fcad328277ce464b042f622)
diff --git a/decoder/ih264d_utils.c b/decoder/ih264d_utils.c
index c64ee8a..4f6deca 100644
--- a/decoder/ih264d_utils.c
+++ b/decoder/ih264d_utils.c
@@ -1999,10 +1999,7 @@
/* 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);