From 1a13168ca3510ba91274d10fdee46b3642cc9554 Mon Sep 17 00:00:00 2001 From: Harish Mahendrakar Date: Thu, 15 Dec 2016 18:04:53 +0530 Subject: [PATCH] Decoder: Fixed error handling for dangling fields In case of dangling fields with gaps in frames enabled, field pic in cur_slice was wrongly set to 0. This would cause dangling field to be concealed as a frame, which would result in a number of MB mismatch and hence a hang. Bug: 34097672 Change-Id: Ia9b7f72c4676188c45790b2dfbb4fe2c2d2c01f8 --- decoder/ih264d_utils.c | 1 - 1 file changed, 1 deletion(-) diff --git a/decoder/ih264d_utils.c b/decoder/ih264d_utils.c index 3567785..ca4242e 100644 --- a/decoder/ih264d_utils.c +++ b/decoder/ih264d_utils.c @@ -1782,7 +1782,6 @@ WORD32 ih264d_decode_gaps_in_frame_num(dec_struct_t *ps_dec, ps_cur_slice = ps_dec->ps_cur_slice; ps_pic_params = ps_dec->ps_cur_pps; - ps_cur_slice->u1_field_pic_flag = 0; i4_frame_gaps = 0; ps_dpb_mgr = ps_dec->ps_dpb_mgr;