[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 <vic.hong@rock-chips.com>
Change-Id: I4c5aaa20b074d470eff73461ac15c1019f74cfb4
This commit is contained in:
Hongjin Li
2022-03-07 19:54:26 +08:00
committed by Herman Chen
parent 4ce2785fd3
commit d5618f3ccd

View File

@@ -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);