summaryrefslogtreecommitdiff
path: root/rotord/src/rotor.cpp
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-08-22 19:49:55 +0100
committerComment <tim@gray.(none)>2013-08-22 19:49:55 +0100
commit153fefb66f2f8495d772e7b673e3556adc00d975 (patch)
tree5c861b2a09c23299a0476151f521593eef1e18ae /rotord/src/rotor.cpp
parentb7992bab3a5087bdfb1d2c25b1b3e0bad339b588 (diff)
mix mode of cycler node
Diffstat (limited to 'rotord/src/rotor.cpp')
-rwxr-xr-xrotord/src/rotor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rotord/src/rotor.cpp b/rotord/src/rotor.cpp
index c45ce5e..8883a71 100755
--- a/rotord/src/rotor.cpp
+++ b/rotord/src/rotor.cpp
@@ -346,10 +346,10 @@ Image* Video_loader::output(const Frame_spec &frame){
int wanted;
if (attributes["mode"]->intVal==VIDEOFRAMES_frame) {
- wanted=(((int) ((frame.time*frame.framerate)+0.5))%(player.getNumberOfFrames()-1))+1; //+1 is necessary because 1st frame in a video is number 1?
+ wanted=(((int) ((frame.time*frame.framerate)+0.5))%(player.getNumberOfFrames()))+1; //+1 is necessary because 1st frame in a video is number 1?
}
if (attributes["mode"]->intVal==VIDEOFRAMES_blend) {
- wanted=(((int) ((frame.time*frame.framerate*clipspeed)+0.5))%(player.getNumberOfFrames()-1))+1; //+1 is necessary because 1st frame in a video is number 1?
+ wanted=(((int) ((frame.time*frame.framerate*clipspeed)+0.5))%(player.getNumberOfFrames()))+1; //+1 is necessary because 1st frame in a video is number 1?
}
if (wanted!=lastframe){