summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVenkatarama Avadhani <venkatarama.avadhani@ittiam.com>2017-12-18 15:57:18 +0530
committerTim Schumacher <timschumi@gmx.de>2018-03-08 22:34:29 +0100
commit56eedc3af100b78100e3f16e44763abee305cc2c (patch)
treea262374c4561314b35a5232e098e88315e09f56c
parent53442e5649adc0164854c24debe561cfe62e2122 (diff)
downloadandroid_external_libmpeg2-56eedc3af100b78100e3f16e44763abee305cc2c.tar.gz
android_external_libmpeg2-56eedc3af100b78100e3f16e44763abee305cc2c.tar.bz2
android_external_libmpeg2-56eedc3af100b78100e3f16e44763abee305cc2c.zip
Correcting Buffer Allocation for Shared Display
In case of shared display mode, the picture buffer allocated has to be larger to accomodate the incorrect half pel reference to the last row in the picture. Adding memory for the same. Bug: 70350015 Bug: 70349694 Bug: 70349612 Bug: 70349754 Bug: 70349868 Bug: 70526352 Bug: 70350086 Test: manual Change-Id: I41905d101093ae20ab14193c21669b8c4a24f30c (cherry picked from commit 5c1ed47b1fc1a0f763c251d62db14f3d74cb3141)
-rw-r--r--decoder/impeg2d_api_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/decoder/impeg2d_api_main.c b/decoder/impeg2d_api_main.c
index b14762f..7fd3e4a 100644
--- a/decoder/impeg2d_api_main.c
+++ b/decoder/impeg2d_api_main.c
@@ -775,7 +775,8 @@ IV_API_CALL_STATUS_T impeg2d_api_get_buf_info(iv_obj_t *ps_dechdl,
{
u4_stride = ps_dec_state->u4_frm_buf_stride;
}
- u4_height = ((ps_dec_state->u2_frame_height + 15) >> 4) << 4;
+ u4_stride = ALIGN16(u4_stride);
+ u4_height = ALIGN32(ps_dec_state->u2_frame_height) + 9;
if(ps_dec_state->i4_chromaFormat == IV_YUV_420P)
{