From d5618f3ccd00bc2684b03ead44915dd01609d7e0 Mon Sep 17 00:00:00 2001 From: Hongjin Li Date: Mon, 7 Mar 2022 19:54:26 +0800 Subject: [PATCH] [mpp_h265]: Fix the black screen issue of hevc For hevc field source without idr frame, get idr information from recovrey point Signed-off-by: Hongjin Li Change-Id: I4c5aaa20b074d470eff73461ac15c1019f74cfb4 --- mpp/codec/dec/h265/h265d_sei.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mpp/codec/dec/h265/h265d_sei.c b/mpp/codec/dec/h265/h265d_sei.c index 08fc64bd..89ad3b39 100644 --- a/mpp/codec/dec/h265/h265d_sei.c +++ b/mpp/codec/dec/h265/h265d_sei.c @@ -373,6 +373,10 @@ static RK_S32 decode_nal_sei_message(HEVCContext *s) h265d_dbg(H265D_DBG_SEI, "tone_mapping_info in\n"); tone_mapping_info(s); return 1; + } else if (payload_type == 6) { + h265d_dbg(H265D_DBG_SEI, "recovery point in\n"); + s->max_ra = INT_MIN; + return 1; } else { h265d_dbg(H265D_DBG_SEI, "Skipped PREFIX SEI %d\n", payload_type); SKIP_BITS(gb, 8 * payload_size);