Decoder: Fix in returning incomplete frame error am: d1896deaf1 am: 3e29786590 am: 252ecb244e am: 0f5870d0ce am: 862e10b430 am: b8a9406113 am: 16cd53294c

am: d9655fc433

Change-Id: Ibd427351e4eee5451ce90cf50ccd87bd50fbce6e
This commit is contained in:
Harish Mahendrakar 2017-01-06 18:06:31 +00:00 committed by android-build-merger
commit bbd43b445b

View file

@ -1078,7 +1078,9 @@ WORD32 ih264d_parse_nal_unit(iv_obj_t *dec_hdl,
u1_nal_unit_type = NAL_UNIT_TYPE(u1_first_byte);
// if any other nal unit other than slice nal is encountered in between a
// frame break out of loop without consuming header
if((ps_dec->u2_total_mbs_coded != 0) && (u1_nal_unit_type > IDR_SLICE_NAL))
if ((ps_dec->u4_slice_start_code_found == 1)
&& (ps_dec->u1_pic_decode_done != 1)
&& (u1_nal_unit_type > IDR_SLICE_NAL))
{
return ERROR_INCOMPLETE_FRAME;
}