summaryrefslogtreecommitdiff
path: root/rotord/src
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-10-03 15:45:18 +0100
committerTim Redfern <tim@eclectronics.org>2013-10-03 15:45:18 +0100
commitb703d2bb1d101e20c85e1addeff917407558cd76 (patch)
tree260292533ce1cf21f0c290b83a3320ab7c7b7268 /rotord/src
parentd845da50c89f9276af76829c4a95b5e1f631a85a (diff)
video stretch mode
Diffstat (limited to 'rotord/src')
-rw-r--r--rotord/src/rotor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h
index baf5615..385c3fe 100644
--- a/rotord/src/rotor.h
+++ b/rotord/src/rotor.h
@@ -936,7 +936,7 @@ namespace Rotor {
wanted=fmod(frame.time*frame.framerate*clipspeed,(float)player.get_number_frames());
break;
case VIDEOTIME_stretch:
- wanted=fmod(frame.time*frame.framerate*clipspeed,(float)player.get_number_frames());
+ wanted=fmod((frame.time/frame.duration)*((float)player.get_number_frames())*clipspeed,(float)player.get_number_frames());
break;
}
if (attributes["frame_mode"]->intVal==VIDEOFRAMES_blend){