summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-08 01:16:07 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-08 01:16:07 +0800
commit134211be4833a4f3f0040be2ad76dd8da4cfe094 (patch)
treeab1687bd275c56caa1ad09ef3f0c5730a47b4911
parentb1ad16e9b03c63346d1d053c861b50099cd70185 (diff)
downloadpttbbs-134211be4833a4f3f0040be2ad76dd8da4cfe094.tar
pttbbs-134211be4833a4f3f0040be2ad76dd8da4cfe094.tar.gz
pttbbs-134211be4833a4f3f0040be2ad76dd8da4cfe094.tar.bz2
pttbbs-134211be4833a4f3f0040be2ad76dd8da4cfe094.tar.lz
pttbbs-134211be4833a4f3f0040be2ad76dd8da4cfe094.tar.xz
pttbbs-134211be4833a4f3f0040be2ad76dd8da4cfe094.tar.zst
pttbbs-134211be4833a4f3f0040be2ad76dd8da4cfe094.zip
- pmore: fix movie -1f frame offset-by-one(line) index error.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4093 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/pmore.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c
index fde26f3a..a5829555 100644
--- a/mbbsd/pmore.c
+++ b/mbbsd/pmore.c
@@ -3085,6 +3085,9 @@ 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)