diff options
author | Harish Mahendrakar <harish.mahendrakar@ittiam.com> | 2016-04-20 16:13:52 +0530 |
---|---|---|
committer | The Android Automerger <android-build@google.com> | 2016-05-27 11:30:02 -0700 |
commit | e629194c62a9a129ce378e08cb1059a8a53f1795 (patch) | |
tree | 7fd996056a58f8e26c69288c2b55a8cd26cc08a0 /decoder/ih264d_api.c | |
parent | ecf6c7ce6d5a22d52160698aab44fc234c63291a (diff) | |
download | android_external_libavc-e629194c62a9a129ce378e08cb1059a8a53f1795.tar.gz android_external_libavc-e629194c62a9a129ce378e08cb1059a8a53f1795.tar.bz2 android_external_libavc-e629194c62a9a129ce378e08cb1059a8a53f1795.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
Change-Id: I66eb2ddc5e02e74b7ff04da5f749443920f37141
Diffstat (limited to 'decoder/ih264d_api.c')
-rw-r--r-- | decoder/ih264d_api.c | 8 |
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) { |