diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-10-03 15:45:18 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-10-03 15:45:18 +0100 |
| commit | b703d2bb1d101e20c85e1addeff917407558cd76 (patch) | |
| tree | 260292533ce1cf21f0c290b83a3320ab7c7b7268 /rotord/src | |
| parent | d845da50c89f9276af76829c4a95b5e1f631a85a (diff) | |
video stretch mode
Diffstat (limited to 'rotord/src')
| -rw-r--r-- | rotord/src/rotor.h | 2 |
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){ |
