From 48ee09ae0de89750a8e1767a8ebb1be1ea1cf858 Mon Sep 17 00:00:00 2001 From: "zhilei.wu" Date: Thu, 23 Aug 2018 14:59:53 +0800 Subject: [PATCH] vh265: output the correct sei information for dv PD#169710: vh265: output the correct sei information for dv Change-Id: I60368cdfa04e76d4b5b5bad5c2c066a50a878431 Signed-off-by: zhilei.wu --- .../media_modules/frame_provider/decoder/h265/vh265.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/amlogic/media_modules/frame_provider/decoder/h265/vh265.c b/drivers/amlogic/media_modules/frame_provider/decoder/h265/vh265.c index 7e9b4dfeae7c..0077ba54cf01 100644 --- a/drivers/amlogic/media_modules/frame_provider/decoder/h265/vh265.c +++ b/drivers/amlogic/media_modules/frame_provider/decoder/h265/vh265.c @@ -1258,6 +1258,7 @@ struct PIC_s { u32 sar_width; u32 sar_height; u32 double_write_mode; + u32 video_signal_type; } /*PIC_t */; #define MAX_TILE_COL_NUM 10 @@ -4622,7 +4623,8 @@ static struct PIC_s *get_new_pic(struct hevc_state_s *hevc, hevc->bit_depth_luma; new_pic->bit_depth_chroma = hevc->bit_depth_chroma; - + new_pic->video_signal_type = + hevc->video_signal_type; hevc_print(hevc, H265_DEBUG_BUFMGR_MORE, "%s: index %d, buf_idx %d, decode_idx %d, POC %d\n", __func__, new_pic->index, @@ -6290,7 +6292,7 @@ static void set_frame_info(struct hevc_state_s *hevc, struct vframe_s *vf, /* signal_type */ if (hevc->video_signal_type & VIDEO_SIGNAL_TYPE_AVAILABLE_MASK) - vf->signal_type = hevc->video_signal_type; + vf->signal_type = pic->video_signal_type; else vf->signal_type = 0;