vh265: fix fps statistics error [1/1]
authorGan Zhang <gan.zhang@amlogic.com>
Tue, 12 May 2020 06:26:34 +0000 (14:26 +0800)
committerHui Zhang <hui.zhang@amlogic.com>
Wed, 13 May 2020 06:32:18 +0000 (23:32 -0700)
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 <gan.zhang@amlogic.com>
drivers/frame_provider/decoder/h265/vh265.c

index 83e4ffef7db5f1fe9301d4c4b1ca1b3dfce9cd00..5accb873e31bb5e7202ef9900ad2603c04c658bc 100644 (file)
@@ -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) {