diff options
author | Harish Mahendrakar <harish.mahendrakar@ittiam.com> | 2016-07-12 10:37:28 +0530 |
---|---|---|
committer | Jessica Wagantall <jwagantall@cyngn.com> | 2016-09-08 13:04:29 -0700 |
commit | f613782f2b107608a43b68c3df9d8ef3291e4e88 (patch) | |
tree | af28343cb22e852800fa24376f3abcb3d0bd7aba | |
parent | 6718ae7e5dfd747712e8b76a1607b5bbbdad98d3 (diff) | |
download | android_external_libavc-f613782f2b107608a43b68c3df9d8ef3291e4e88.tar.gz android_external_libavc-f613782f2b107608a43b68c3df9d8ef3291e4e88.tar.bz2 android_external_libavc-f613782f2b107608a43b68c3df9d8ef3291e4e88.zip |
Fixed error concealment when no MBs are decoded in the current pic
CYNGNOS-3235
Bug: 29493002
Change-Id: I3fae547ddb0616b4e6579580985232bd3d65881e
(cherry picked from commit b926905ee245644806e62bef92b61c8832c44fd8)
(cherry picked from commit 23e46598f983d2fc493e050ebf060969407424dd)
-rw-r--r-- | decoder/ih264d_api.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/decoder/ih264d_api.c b/decoder/ih264d_api.c index 801960b..6aa71f2 100644 --- a/decoder/ih264d_api.c +++ b/decoder/ih264d_api.c @@ -2140,6 +2140,9 @@ WORD32 ih264d_video_decode(iv_obj_t *dec_hdl, void *pv_api_ip, void *pv_api_op) else prev_slice_err = 2; + if(ps_dec->u4_first_slice_in_pic && (ps_dec->u2_total_mbs_coded == 0)) + prev_slice_err = 1; + ret1 = ih264d_mark_err_slice_skip(ps_dec, num_mb_skipped, ps_dec->u1_nal_unit_type == IDR_SLICE_NAL, ps_dec->ps_cur_slice->u2_frame_num, &temp_poc, prev_slice_err); |