PD#SWPL-34606
Problem:
h264 freeze after config decode buf failed
Solution:
set init flag 0 after set param failed.
Verify:
t963
Change-Id: I6f965dc76f341ca38d105d4e25116725e76abee7
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
hw->cfg_param3,
hw->cfg_param4, true) < 0)
hw->stat |= DECODER_FATAL_ERROR_SIZE_OVERFLOW;
+ else
+ hw->stat &= (~DECODER_FATAL_ERROR_SIZE_OVERFLOW);
/*drop 3 frames after reset bufmgr if bit0 is set 1 */
if (first_i_policy & 0x01)
p_H264_Dpb->first_insert_frame = FirstInsertFrm_RESET;
- hw->init_flag = 1;
+ if (hw->stat & DECODER_FATAL_ERROR_SIZE_OVERFLOW)
+ hw->init_flag = 0;
+ else
+ hw->init_flag = 1;
hw->reset_bufmgr_count++;
#endif