mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-11-03 09:40:50 +08:00
[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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user