From c72cb5f505a30b0871491760089910d8d67fd710 Mon Sep 17 00:00:00 2001 From: Karl Blomster Date: Sat, 6 Sep 2008 02:54:22 +0000 Subject: [PATCH] kill another useless cast Originally committed to SVN as r2324. --- aegisub/video_provider_ffmpegsource.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aegisub/video_provider_ffmpegsource.cpp b/aegisub/video_provider_ffmpegsource.cpp index bc6f11148..ed5763966 100644 --- a/aegisub/video_provider_ffmpegsource.cpp +++ b/aegisub/video_provider_ffmpegsource.cpp @@ -157,8 +157,7 @@ void FFmpegSourceVideoProvider::LoadVideo(Aegisub::String filename, double fps) // calculate timestamp and add to timecodes vector int64_t Timestamp = (int64_t)((CurFrameData->DTS * TimeBase->Num) / (double)TimeBase->Den); - // dumb to cast this to an int but the vfr functions all want it as that - TimecodesVector.push_back(int(Timestamp)); + TimecodesVector.push_back(Timestamp); } KeyFramesLoaded = true;