From 6245de5aeccde336f5debab6944ebd10ace22986 Mon Sep 17 00:00:00 2001 From: piaip Date: Mon, 7 Apr 2008 17:28:31 +0000 Subject: - pmore/movie: better fixing of f-1 frame determination. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4094 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/pmore.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c index a5829555..21e65c92 100644 --- a/mbbsd/pmore.c +++ b/mbbsd/pmore.c @@ -3085,12 +3085,11 @@ mf_movieGotoFrame(int fno, int relative) mf_forward(1); } while (fno > 0); } else { - // For backward, the first call moves to beginning of file. - if (mf_backward(1) < 1) - return 0; // backward - // XXX check if we reached head? - while (fno < 0) + // For backward, the first call moves to beginning of current line + // (which is frame header). so the loop should be be (abs(fno)+1), + // and that's why use <= here. + while (fno <= 0) { do { if (mf_backward(1) < 1) -- cgit v1.2.3