mirror of https://github.com/odrling/Aegisub
kill another useless cast
Originally committed to SVN as r2324.
This commit is contained in:
parent
0add56bfa0
commit
c72cb5f505
|
@ -157,8 +157,7 @@ void FFmpegSourceVideoProvider::LoadVideo(Aegisub::String filename, double fps)
|
||||||
|
|
||||||
// calculate timestamp and add to timecodes vector
|
// calculate timestamp and add to timecodes vector
|
||||||
int64_t Timestamp = (int64_t)((CurFrameData->DTS * TimeBase->Num) / (double)TimeBase->Den);
|
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(Timestamp);
|
||||||
TimecodesVector.push_back(int(Timestamp));
|
|
||||||
}
|
}
|
||||||
KeyFramesLoaded = true;
|
KeyFramesLoaded = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue