stream_dvdnav: cast to int64_t before multiplication

Just to silence static analysis warning. It is assigned to int64_t
anyway.
This commit is contained in:
Kacper Michajłow committed 2025-03-06 21:58:38 +01:00
1 parent 41d03dca2a
commit d035a63913
1 file changed
+2 -2
+2 -2
View File
@@ -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;