From 153fefb66f2f8495d772e7b673e3556adc00d975 Mon Sep 17 00:00:00 2001 From: Comment Date: Thu, 22 Aug 2013 19:49:55 +0100 Subject: mix mode of cycler node --- rotord/src/rotor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rotord/src/rotor.cpp') 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){ -- cgit v1.2.3