Johannes Kron 7f775bc94c Ensure accurate FPS calculation for low frame rates
When receiving streams with frame rates around 1 fps, the decode and
render fps were incorrectly reported as 0, even though frames were being
decoded successfully.

This commit addresses the issue by adjusting the calculation in
RateStatistics to better handle streams with frame intervals that are
close to the window size.

1 fps streams are an important special case that occur frequently in
in screen share scenarios.

Fixed: webrtc:354625675
Change-Id: I1362768229a3abab5929220ba4bbd5ccb06a33d2
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/368080
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Johannes Kron <kron@webrtc.org>
Reviewed-by: Sergey Silkin <ssilkin@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43417}
2024-11-18 14:17:22 +00:00
..
2023-11-15 12:10:28 +00:00
2023-04-21 06:17:42 +00:00
2024-08-09 14:58:10 +00:00
2023-04-21 06:17:42 +00:00
2024-10-31 15:31:38 +00:00
2024-04-24 20:53:23 +00:00
2022-01-28 15:13:45 +00:00
2023-04-21 06:17:42 +00:00
2024-08-14 07:11:57 +00:00
2023-04-21 06:17:42 +00:00
2021-08-31 14:27:49 +00:00
2024-02-01 14:43:30 +00:00
2024-02-01 14:43:30 +00:00
2024-06-07 09:47:26 +00:00
2024-06-07 09:47:26 +00:00
2024-08-14 07:11:57 +00:00
2024-02-01 14:43:30 +00:00
2023-04-21 06:17:42 +00:00
2021-09-21 15:17:26 +00:00
2024-06-07 09:47:26 +00:00