From 380ef67c241f12dfab621e84177d62c36c120627 Mon Sep 17 00:00:00 2001 From: Yandong Lin Date: Tue, 10 Jun 2025 14:51:55 +0800 Subject: [PATCH] fix[h265d_rkv]: Fix dec err after cut streams Need to sync cache after cut slice segment header extension datas. Change-Id: Id89ef895ac6df47ff593407a18e0246138dffb9f Signed-off-by: Yandong Lin --- mpp/hal/rkdec/h265d/hal_h265d_rkv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mpp/hal/rkdec/h265d/hal_h265d_rkv.c b/mpp/hal/rkdec/h265d/hal_h265d_rkv.c index 96d3bacd..328c4c32 100644 --- a/mpp/hal/rkdec/h265d/hal_h265d_rkv.c +++ b/mpp/hal/rkdec/h265d/hal_h265d_rkv.c @@ -843,6 +843,7 @@ MPP_RET hal_h265d_rkv_gen_regs(void *hal, HalTaskInfo *syn) if (dxva_cxt->pp.slice_segment_header_extension_present_flag && !reg_ctx->is_v345) { update_stream_buffer(streambuf, syn); + mpp_buffer_sync_end(streambuf); } hw_regs->sw_cabactbl_base = mpp_buffer_get_fd(reg_ctx->cabac_table_data);