From: Gan Zhang Date: Tue, 12 May 2020 06:26:34 +0000 (+0800) Subject: vh265: fix fps statistics error [1/1] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2c478b7ca86d7ab46ce5875e4510c71f0556aec0;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_media.git vh265: fix fps statistics error [1/1] PD#SWPL-25770 Problem: One more fps was counted, resulting in an error in fps statistics. Solution: Only statistics fps once. Verify: AC214 Change-Id: I5d7d3f8ea81eaba069d83d8b755c891a29db36c0 Signed-off-by: Gan Zhang --- diff --git a/drivers/frame_provider/decoder/h265/vh265.c b/drivers/frame_provider/decoder/h265/vh265.c index 83e4ffe..5accb87 100644 --- a/drivers/frame_provider/decoder/h265/vh265.c +++ b/drivers/frame_provider/decoder/h265/vh265.c @@ -9251,7 +9251,6 @@ static int prepare_display_buf(struct hevc_state_s *hevc, struct PIC_s *pic) get_pic_poc(hevc, (vf->index >> 8) & 0xff), vf->pts, vf->pts_us64, vf->duration); - hw_to_vdec(hevc)->vdec_fps_detec(hw_to_vdec(hevc)->id); /*if (pic->vf_ref == hevc->vf_pre_count) {*/ if (hevc->kpi_first_i_decoded == 0) {