summaryrefslogtreecommitdiffstats
path: root/decoder/ih264d_api.c
diff options
context:
space:
mode:
authorHarish Mahendrakar <harish.mahendrakar@ittiam.com>2016-04-20 16:13:52 +0530
committerJessica Wagantall <jwagantall@cyngn.com>2016-07-07 09:41:52 -0700
commita52b5f6890479576333de325be20c29e829122e7 (patch)
tree379485f0394515abed0636a24003e08daeea3a7e /decoder/ih264d_api.c
parentf3f17cef941acc44edd3b6f32a099eb725ffa7b5 (diff)
downloadandroid_external_libavc-a52b5f6890479576333de325be20c29e829122e7.tar.gz
android_external_libavc-a52b5f6890479576333de325be20c29e829122e7.tar.bz2
android_external_libavc-a52b5f6890479576333de325be20c29e829122e7.zip
Decoder: Initialize slice parameters before concealing error MBs
Also memset ps_dec_op structure to zero. For error input, this ensures dimensions are initialized to zero Bug: 28165661 Ticket: CYNGNOS-3020 Change-Id: I66eb2ddc5e02e74b7ff04da5f749443920f37141
Diffstat (limited to 'decoder/ih264d_api.c')
-rw-r--r--decoder/ih264d_api.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/decoder/ih264d_api.c b/decoder/ih264d_api.c
index b6d4e35..82226f3 100644
--- a/decoder/ih264d_api.c
+++ b/decoder/ih264d_api.c
@@ -1637,6 +1637,14 @@ WORD32 ih264d_video_decode(iv_obj_t *dec_hdl, void *pv_api_ip, void *pv_api_op)
ps_dec_ip = (ivd_video_decode_ip_t *)pv_api_ip;
ps_dec_op = (ivd_video_decode_op_t *)pv_api_op;
+
+ {
+ UWORD32 u4_size;
+ u4_size = ps_dec_op->u4_size;
+ memset(ps_dec_op, 0, sizeof(ivd_video_decode_op_t));
+ ps_dec_op->u4_size = u4_size;
+ }
+
ps_dec->pv_dec_out = ps_dec_op;
if(ps_dec->init_done != 1)
{