From 1121f32b408b83dcc01977aeaf5202f0601cdcc6 Mon Sep 17 00:00:00 2001 From: jpark37 Date: Sat, 29 Feb 2020 20:57:17 -0800 Subject: [PATCH] obs-ffmpeg: Fix type conversion warning --- plugins/obs-ffmpeg/obs-ffmpeg-source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/obs-ffmpeg/obs-ffmpeg-source.c b/plugins/obs-ffmpeg/obs-ffmpeg-source.c index 74569316f..6dd44473e 100644 --- a/plugins/obs-ffmpeg/obs-ffmpeg-source.c +++ b/plugins/obs-ffmpeg/obs-ffmpeg-source.c @@ -599,7 +599,7 @@ static int64_t ffmpeg_source_get_duration(void *data) int64_t dur = 0; if (s->media.fmt) - dur = (float)s->media.fmt->duration / 1000.0f; + dur = s->media.fmt->duration / INT64_C(1000); return dur; }