summaryrefslogtreecommitdiff
authorHui Zhang <hui.zhang@amlogic.com>2020-04-05 06:01:03 (GMT)
committer Hui Zhang <hui.zhang@amlogic.com>2020-04-05 07:09:21 (GMT)
commit12d5470349df36cd1d714be20ccfdb06e3b3ecf6 (patch)
treee81b2d02139887db2619f60a9a02eddebb39e123
parent2633a0ab1543f9bd426426d5420580eb9d470406 (diff)
downloadmedia_modules-12d5470349df36cd1d714be20ccfdb06e3b3ecf6.zip
media_modules-12d5470349df36cd1d714be20ccfdb06e3b3ecf6.tar.gz
media_modules-12d5470349df36cd1d714be20ccfdb06e3b3ecf6.tar.bz2
vh265: fix frame output issue [1/1]
PD#SWPL-23636 Problem: commit 98920 introduce this issue. first frame will be output twice with same vf. because first frame pic->num_reorder_pic was set to 0 by fast output. next output check will use this flag and output it again. which also cause cts and autotest fail Solution: for first output,using hevc->sps_num_reorder_pics_0 to check fast output Verify: AB311 Change-Id: I89ba47b7295b737325aa738caba273398177fe47 Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
Diffstat
-rw-r--r--drivers/frame_provider/decoder/h265/vh265.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/frame_provider/decoder/h265/vh265.c b/drivers/frame_provider/decoder/h265/vh265.c
index 412538d..9af3de7 100644
--- a/drivers/frame_provider/decoder/h265/vh265.c
+++ b/drivers/frame_provider/decoder/h265/vh265.c
@@ -3900,7 +3900,7 @@ static struct PIC_s *output_pic(struct hevc_state_s *hevc,
}
}
- if (pic_display && pic_display->num_reorder_pic &&
+ if (pic_display && hevc->sps_num_reorder_pics_0 &&
(hevc->vf_pre_count == 1) && (hevc->first_pic_flag == 1)) {
pic_display = NULL;
hevc->first_pic_flag = 0;