Skip to content
Extraits de code Groupes Projets
Valider 8fad077e rédigé par Thomas Goyne's avatar Thomas Goyne
Parcourir les fichiers

Don't ignore loaded timecodes when converting frames to times for the subtitle renderer

parent 57a25300
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -291,11 +291,11 @@ void VideoContext::JumpToTime(int ms, agi::vfr::Time end) { ...@@ -291,11 +291,11 @@ void VideoContext::JumpToTime(int ms, agi::vfr::Time end) {
} }
void VideoContext::GetFrameAsync(int n) { void VideoContext::GetFrameAsync(int n) {
provider->RequestFrame(n, videoFPS.TimeAtFrame(n) / 1000.0); provider->RequestFrame(n, TimeAtFrame(n) / 1000.0);
} }
std::tr1::shared_ptr<AegiVideoFrame> VideoContext::GetFrame(int n, bool raw) { std::tr1::shared_ptr<AegiVideoFrame> VideoContext::GetFrame(int n, bool raw) {
return provider->GetFrame(n, videoFPS.TimeAtFrame(n) / 1000.0, raw); return provider->GetFrame(n, TimeAtFrame(n) / 1000.0, raw);
} }
int VideoContext::GetWidth() const { int VideoContext::GetWidth() const {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter