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 <yixin.peng@amlogic.com>
This commit is contained in:
Peng Yixin
2018-10-16 15:39:12 +08:00
committed by Dongjin Kim
parent 72b294a41b
commit a20dfbc252

View File

@@ -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));