Merge pull request #2445 from jpark37/ffmpeg-duration-warning

obs-ffmpeg: Fix type conversion warning
master
Jim 2020-03-01 01:35:22 -08:00 committed by GitHub
commit 88e8ffc1e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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