mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-24 17:40:21 +08:00
[h265d]: supplement disable_error flag when mark error
Change-Id: Ic4b1f4a682f399cdcf2499b45e838a1cbd8834f4 Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
This commit is contained in:
@@ -1196,7 +1196,7 @@ static RK_S32 hevc_frame_start(HEVCContext *s)
|
||||
if (ret < 0)
|
||||
goto fail;
|
||||
|
||||
if (s->miss_ref_flag) {
|
||||
if (!s->h265dctx->disable_error && s->miss_ref_flag) {
|
||||
if (!IS_IRAP(s)) {
|
||||
mpp_frame_set_errinfo(s->frame, MPP_FRAME_ERR_UNKNOW);
|
||||
s->ref->error_flag = 1;
|
||||
@@ -1324,7 +1324,8 @@ static RK_S32 parser_nal_unit(HEVCContext *s, const RK_U8 *nal, int length)
|
||||
s->poc <= s->max_ra) {
|
||||
s->is_decoded = 0;
|
||||
break;
|
||||
} else if ((s->poc < s->max_ra) && !IS_IRAP(s)) { //when seek to I slice skip the stream small then I slic poc
|
||||
} else if (!s->h265dctx->disable_error &&
|
||||
(s->poc < s->max_ra) && !IS_IRAP(s)) { //when seek to I slice skip the stream small then I slic poc
|
||||
s->is_decoded = 0;
|
||||
break;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user