From 0d6cc485a7aea8bd01e01504f2067f5af37550b5 Mon Sep 17 00:00:00 2001 From: Gan Zhang Date: Wed, 25 Mar 2020 16:22:48 +0800 Subject: [PATCH] Vp9: Garbage picturen appears at the begin [1/1] PD#SWPL-21296 Problem: When double write is 3, because the keep in mem_head_handle is the compressed data header and there is no keep to yuv data, the display before starting to play is dirty data. Solution: Change the data in mem_head_handle to yuv data. Verify: U212 Change-Id: I0e867152079c704173878a3c7bd939c62b141b44 Signed-off-by: Gan Zhang --- drivers/frame_provider/decoder/vp9/vvp9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/frame_provider/decoder/vp9/vvp9.c b/drivers/frame_provider/decoder/vp9/vvp9.c index 21bf5ad..4fdf332 100644 --- a/drivers/frame_provider/decoder/vp9/vvp9.c +++ b/drivers/frame_provider/decoder/vp9/vvp9.c @@ -7037,7 +7037,7 @@ static void update_vf_memhandle(struct VP9Decoder_s *pbi, vf->mem_head_handle = decoder_bmmu_box_get_mem_handle( pbi->bmmu_box, - HEADER_BUFFER_IDX(pic->BUF_index)); + VF_BUFFER_IDX(pic->BUF_index)); } else { vf->mem_handle = decoder_bmmu_box_get_mem_handle( -- 2.20.1