From d035a63913f4c3adfd73d75744656f149df41bfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Wed, 5 Mar 2025 19:57:04 +0100 Subject: [PATCH] stream_dvdnav: cast to int64_t before multiplication Just to silence static analysis warning. It is assigned to int64_t anyway. --- stream/stream_dvdnav.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c index 3592624817..88195b5e5f 100644 --- a/stream/stream_dvdnav.c +++ b/stream/stream_dvdnav.c @@ -456,8 +456,8 @@ static int control(stream_t *stream, int cmd, void *arg) int64_t tm = (int64_t)(d * 90000); if (tm < 0) tm = 0; - if (priv->duration && tm >= (priv->duration * 90)) - tm = priv->duration * 90 - 1; + if (priv->duration && tm >= (int64_t)priv->duration * 90) + tm = (int64_t)priv->duration * 90 - 1; uint32_t pos, len; if (dvdnav_get_position(dvdnav, &pos, &len) != DVDNAV_STATUS_OK) break;