[h265d]: Fix IDR with redundancy nal parse error

Change-Id: Ic2bfe0e740b8e1f6952d2ba2d43c20eaebd0cbd2
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
This commit is contained in:
sayon.chen
2022-02-18 09:21:36 +08:00
committed by Herman Chen
parent 4d1e611051
commit 7f382cc10d

View File

@@ -1348,6 +1348,10 @@ static RK_S32 parser_nal_unit(HEVCContext *s, const RK_U8 *nal, int length)
if (ret < 0) {
mpp_err("hls_slice_header error ret = %d", ret);
if (s->first_nal_type != s->nal_unit_type)
return 0;
return ret;
}