mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-14 21:25:42 +08:00
[h264d] when missing short reference, mark error
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@747 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
@@ -1402,7 +1402,7 @@ static RK_U32 check_ref_pic_list(H264_SLICE_t *currSlice, RK_S32 cur_list)
|
|||||||
picNumLX = picNumLX < 0 ? (picNumLX + (maxPicNum >> 1)) : picNumLX;
|
picNumLX = picNumLX < 0 ? (picNumLX + (maxPicNum >> 1)) : picNumLX;
|
||||||
}
|
}
|
||||||
picNumLX = (picNumLX < 0) ? (picNumLX + maxPicNum) : picNumLX;
|
picNumLX = (picNumLX < 0) ? (picNumLX + maxPicNum) : picNumLX;
|
||||||
#if 1
|
|
||||||
error_flag = 1;
|
error_flag = 1;
|
||||||
if (get_short_term_pic(currSlice, picNumLX, &tmp)) { //!< find short reference
|
if (get_short_term_pic(currSlice, picNumLX, &tmp)) { //!< find short reference
|
||||||
MppFrame mframe = NULL;
|
MppFrame mframe = NULL;
|
||||||
@@ -1413,7 +1413,9 @@ static RK_U32 check_ref_pic_list(H264_SLICE_t *currSlice, RK_S32 cur_list)
|
|||||||
error_flag = 0;
|
error_flag = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else { //!< missing short reference, and fake a reference
|
}
|
||||||
|
#if 0
|
||||||
|
else { //!< missing short reference, and fake a reference
|
||||||
H264D_DBG(H264D_DBG_DPB_REF_ERR, "[DPB_REF_ERR] missing short ref, structure=%d, pic_num=%d. \n", currSlice->structure, picNumLX);
|
H264D_DBG(H264D_DBG_DPB_REF_ERR, "[DPB_REF_ERR] missing short ref, structure=%d, pic_num=%d. \n", currSlice->structure, picNumLX);
|
||||||
if (tmp && tmp->mem_mark) {
|
if (tmp && tmp->mem_mark) {
|
||||||
MppFrame mframe = NULL;
|
MppFrame mframe = NULL;
|
||||||
|
Reference in New Issue
Block a user