From 148b9ad615306ad79388716d2d9f3d6d6c73965e Mon Sep 17 00:00:00 2001 From: Peng Yixin Date: Thu, 17 Oct 2019 05:14:31 +0000 Subject: media_module: h265 full-screen mosaic during playback [1/1] PD#SWPL-12387 Problem: The first I frame was not incorrectly detected, resulting display mosaic picture. Solution: Add error detection for the first I frame to solve this problem. Verify: Verified U212 Change-Id: I2247a878c3bd7b9d13c17614856cb101623e6dab Signed-off-by: Peng Yixin --- diff --git a/drivers/frame_provider/decoder/h265/vh265.c b/drivers/frame_provider/decoder/h265/vh265.c index 2cd939a..37e6969 100644 --- a/drivers/frame_provider/decoder/h265/vh265.c +++ b/drivers/frame_provider/decoder/h265/vh265.c @@ -9478,9 +9478,13 @@ pic_done: pic->output_mark = 1; pic->recon_mark = 1; } + check_pic_decoded_error(hevc, + READ_VREG(HEVC_PARSER_LCU_START) & 0xffffff); + if (hevc->cur_pic != NULL && + (READ_VREG(HEVC_PARSER_LCU_START) & 0xffffff) == 0) + hevc->cur_pic->error_mark = 1; force_output: pic_display = output_pic(hevc, 1); - if (pic_display) { if ((pic_display->error_mark && ((hevc->ignore_bufmgr_error & -- cgit