summaryrefslogtreecommitdiffstats
path: root/mbbsd/pmore.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-02 16:48:07 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-02 16:48:07 +0800
commitc1e121255ce2042931c43b4c257150619e84caa1 (patch)
treeaff587410190c0ddb22332a01563560b16049e9d /mbbsd/pmore.c
parentbcb9af314f177ecc302bfd44f1e0ae7748374838 (diff)
downloadpttbbs-c1e121255ce2042931c43b4c257150619e84caa1.tar
pttbbs-c1e121255ce2042931c43b4c257150619e84caa1.tar.gz
pttbbs-c1e121255ce2042931c43b4c257150619e84caa1.tar.bz2
pttbbs-c1e121255ce2042931c43b4c257150619e84caa1.tar.lz
pttbbs-c1e121255ce2042931c43b4c257150619e84caa1.tar.xz
pttbbs-c1e121255ce2042931c43b4c257150619e84caa1.tar.zst
pttbbs-c1e121255ce2042931c43b4c257150619e84caa1.zip
- pmore/movie: rollback *[m prefix - not really so common.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3960 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/pmore.c')
-rw-r--r--mbbsd/pmore.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c
index 4d4e7140..f8dcefab 100644
--- a/mbbsd/pmore.c
+++ b/mbbsd/pmore.c
@@ -2980,10 +2980,10 @@ mf_movieFrameHeader(unsigned char *p, unsigned char *end)
// So let's go back to fixed format...
static char *patHeader = "==" ESC_STR "[30;40m^L";
static char *patHeader2= ESC_STR "[30;40m^L"; // patHeader + 2; // "=="
- static char *patHeader3= ESC_STR "[m^L";
+ // static char *patHeader3= ESC_STR "[m^L";
static size_t szPatHeader = 12; // strlen(patHeader);
static size_t szPatHeader2 = 10; // strlen(patHeader2);
- static size_t szPatHeader3 = 5; // strlen(patHeader3);
+ // static size_t szPatHeader3 = 5; // strlen(patHeader3);
size_t sz = end - p;
@@ -2997,9 +2997,12 @@ mf_movieFrameHeader(unsigned char *p, unsigned char *end)
return p+2;
// Add more frame headers
+
+ /* // *[m seems not so common, skip.
if (sz < szPatHeader3) return NULL;
if (memcmp(p, patHeader3, szPatHeader3) == 0)
return p + szPatHeader3;
+ */
if (sz < szPatHeader2) return NULL;
if (memcmp(p, patHeader2, szPatHeader2) == 0)