mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-07 01:52:46 +08:00
[h264d]: fix mpp_buf_slot_get_prop crash
Merged from
9d24b076db
Change-Id: I491dc7b653d81a737aa2fd49c3866e26dfcd51de
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:

committed by
Herman Chen

parent
ba2fab3018
commit
ea1ee9f489
@@ -1401,7 +1401,11 @@ static RK_U32 check_ref_dbp_err(H264_DecCtx_t *p_Dec, H264_RefPicInfo_t *pref, R
|
||||
for (i = 0; i < MAX_REF_SIZE; i++) {
|
||||
if (pref[i].valid) {
|
||||
MppFrame mframe = NULL;
|
||||
RK_U32 slot_idx = p_Dec->dpb_info[pref[i].dpb_idx].slot_index;
|
||||
RK_S32 slot_idx = p_Dec->dpb_info[pref[i].dpb_idx].slot_index;
|
||||
if (slot_idx < 0) {
|
||||
dpb_error_flag |= 1;
|
||||
break;
|
||||
}
|
||||
mpp_buf_slot_get_prop(p_Dec->frame_slots, slot_idx, SLOT_FRAME_PTR, &mframe);
|
||||
if (mframe) {
|
||||
if (i < active_refs) {
|
||||
|
Reference in New Issue
Block a user