obs-ffmpeg: Fix type conversion warning

This commit is contained in:
jpark37 2020-02-29 20:57:17 -08:00
parent e40f2cc155
commit 1121f32b40

View File

@ -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;
}