Fixed error concealment when no MBs are decoded in the current pic am: b926905ee2 am: ff54ee6115 am: 9fca73a55e

am: 19080458ba

Change-Id: Ibe5dc75e9b5d340f8c9ad412797b3948da00ef24
This commit is contained in:
Harish Mahendrakar 2016-07-14 01:34:37 +00:00 committed by android-build-merger
commit 9836aa04a9

View file

@ -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);