From b438fa8772d071663692c6c936881e1f44590523 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Fri, 14 Jun 2013 20:33:21 +0100 Subject: weird bugs with small files --- rotord/rotor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rotord/rotor.cpp') diff --git a/rotord/rotor.cpp b/rotord/rotor.cpp index 2fa5183..37af5a1 100755 --- a/rotord/rotor.cpp +++ b/rotord/rotor.cpp @@ -377,12 +377,14 @@ Image* Video_loader::output(const Frame_spec &frame){ */ if (isLoaded){ - int wanted=((int) (frame.time*frame.framerate))%(player.getNumberOfFrames()-2); //-2?? - if (!player.fetchFrame(frame.w,frame.h,wanted)) { cerr<<"Rotor: frame returned false"<data[0]); return ℑ } + //confusingly, crashes with files not made with ffmpeg/ short files? + return nullptr; }; -- cgit v1.2.3