mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
Use safer checking when dealing with FP.
This commit is contained in:
parent
f7fdf34914
commit
235244e438
2
driver.c
2
driver.c
@ -217,7 +217,7 @@ static void adjust_system_rates(void)
|
||||
g_extern.system.force_nonblock = false;
|
||||
const struct retro_system_timing *info = &g_extern.system.av_info.timing;
|
||||
|
||||
if (!info->fps || !info->sample_rate)
|
||||
if (info->fps <= 0.0 || info->sample_rate <= 0.0)
|
||||
return;
|
||||
|
||||
float timing_skew = fabs(1.0f - info->fps / g_settings.video.refresh_rate);
|
||||
|
Loading…
x
Reference in New Issue
Block a user