diff options
author | Hamsalekha S <hamsalekha.s@ittiam.com> | 2017-05-08 17:21:56 +0530 |
---|---|---|
committer | MSe <mse1969@posteo.de> | 2017-08-31 21:25:39 +0200 |
commit | fe8add48c023cc5e504a2d2e0022a37fab06fa36 (patch) | |
tree | da63db274ded8ae8884ee7fb750bdadb9dff7d73 | |
parent | 7aa88ce8babc307faba9c6454b4cb57d8e68a0ac (diff) | |
download | android_external_libavc-fe8add48c023cc5e504a2d2e0022a37fab06fa36.tar.gz android_external_libavc-fe8add48c023cc5e504a2d2e0022a37fab06fa36.tar.bz2 android_external_libavc-fe8add48c023cc5e504a2d2e0022a37fab06fa36.zip |
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)
-rw-r--r-- | decoder/ih264d_utils.c | 5 |
1 files changed, 1 insertions, 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); |