summaryrefslogtreecommitdiff
authorGan Zhang <gan.zhang@amlogic.com>2020-03-25 08:22:48 (GMT)
committer Gan Zhang <gan.zhang@amlogic.com>2020-04-08 06:41:05 (GMT)
commit0d6cc485a7aea8bd01e01504f2067f5af37550b5 (patch)
treee76a982005151f88493f353c7403cbbb2c43ae94
parent30d5679113eee87e4022c57db313c806e30c28af (diff)
downloadmedia_modules-0d6cc485a7aea8bd01e01504f2067f5af37550b5.zip
media_modules-0d6cc485a7aea8bd01e01504f2067f5af37550b5.tar.gz
media_modules-0d6cc485a7aea8bd01e01504f2067f5af37550b5.tar.bz2
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 <gan.zhang@amlogic.com>
Diffstat
-rw-r--r--drivers/frame_provider/decoder/vp9/vvp9.c2
1 files changed, 1 insertions, 1 deletions
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(