aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/idotimeline.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/idotimeline.c b/src/idotimeline.c
index 24a6935..ba838ba 100644
--- a/src/idotimeline.c
+++ b/src/idotimeline.c
@@ -549,7 +549,8 @@ ido_timeline_set_fps (IdoTimeline *timeline,
priv = IDO_TIMELINE_GET_PRIV (timeline);
- priv->fps = fps;
+ /* Coverity CID: 12650/12651: guard against division by 0. */
+ priv->fps = fps > 0 ? fps : priv->fps;
if (ido_timeline_is_running (timeline))
{