From a20dfbc2526e371f6ec9a8487636f36d4c8273e9 Mon Sep 17 00:00:00 2001 From: Peng Yixin Date: Tue, 16 Oct 2018 15:39:12 +0800 Subject: [PATCH] media_module: h265: [1/1] PD#174220 Problem: After analyzing SPS, we found the value of sps_num_reorder_pics_0 is 0. it is an error value, cause video play block. Solution: if it value is 0, we will set 7 for pass cts test. Verify: Verified S905X2 Change-Id: Iff03ec4448f687d4fca2de2dbf3210cb65a90568 Signed-off-by: Peng Yixin --- .../media_modules/frame_provider/decoder/h265/vh265.c | 5 +++-- 1 file changed, 3 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 d7e7ca63087a..8dcf9fa80dda 100644 --- a/drivers/amlogic/media_modules/frame_provider/decoder/h265/vh265.c +++ b/drivers/amlogic/media_modules/frame_provider/decoder/h265/vh265.c @@ -8243,6 +8243,8 @@ pic_done: - ii]; } } + if (hevc->param.p.sps_num_reorder_pics_0 == 0) + hevc->param.p.sps_num_reorder_pics_0 = 7; #ifdef SEND_LMEM_WITH_RPM dma_sync_single_for_cpu( amports_get_dma_device(), @@ -8388,8 +8390,7 @@ pic_done: hevc->lcu_size_log2 = log2i(hevc->lcu_size); if (hevc->pic_w == 0 || hevc->pic_h == 0 || hevc->lcu_size == 0 - || OVER_SIZE(hevc->pic_w, hevc->pic_h) - || (hevc->param.p.sps_num_reorder_pics_0 == 0)) { + || OVER_SIZE(hevc->pic_w, hevc->pic_h)) { /* skip search next start code */ WRITE_VREG(HEVC_WAIT_FLAG, READ_VREG(HEVC_WAIT_FLAG) & (~0x2));