Decoder: Initialize ps_cur_slice->u1_mbaff_frame_flag correctly for error cases
am: 1d5640f2f9
Change-Id: I32e960c752ccbc991f8ce04455618a534f1f52c7
diff --git a/decoder/ih264d_parse_slice.c b/decoder/ih264d_parse_slice.c
index a907e81..11a317b 100644
--- a/decoder/ih264d_parse_slice.c
+++ b/decoder/ih264d_parse_slice.c
@@ -1343,6 +1343,8 @@
ps_cur_slice->u1_redundant_pic_cnt = u1_redundant_pic_cnt;
ps_cur_slice->u1_nal_ref_idc = u1_nal_ref_idc;
ps_cur_slice->u1_pic_order_cnt_type = u1_pic_order_cnt_type;
+ ps_cur_slice->u1_mbaff_frame_flag = ps_seq->u1_mb_aff_flag
+ && (!u1_field_pic_flag);
}
}
else