diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-02 16:12:49 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-02 16:12:49 +0800 |
commit | 33642e3dd987107200e220306fad0748294cf127 (patch) | |
tree | b4f1c279c58a0c5a854e201d9ba685b5059dbfc0 /mbbsd | |
parent | a0b5dd0ab4ffd5c92bcf6fd5be74f2d1d81d35ad (diff) | |
download | pttbbs-33642e3dd987107200e220306fad0748294cf127.tar pttbbs-33642e3dd987107200e220306fad0748294cf127.tar.gz pttbbs-33642e3dd987107200e220306fad0748294cf127.tar.bz2 pttbbs-33642e3dd987107200e220306fad0748294cf127.tar.lz pttbbs-33642e3dd987107200e220306fad0748294cf127.tar.xz pttbbs-33642e3dd987107200e220306fad0748294cf127.tar.zst pttbbs-33642e3dd987107200e220306fad0748294cf127.zip |
- enable ESC[m as prefix for pmore movie (for some ANSI editors)
- document update
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3957 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/pmore.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c index 1d7b82e0..4d4e7140 100644 --- a/mbbsd/pmore.c +++ b/mbbsd/pmore.c @@ -2980,8 +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 size_t szPatHeader = 12; // strlen(patHeader); static size_t szPatHeader2 = 10; // strlen(patHeader2); + static size_t szPatHeader3 = 5; // strlen(patHeader3); size_t sz = end - p; @@ -2995,6 +2997,10 @@ mf_movieFrameHeader(unsigned char *p, unsigned char *end) return p+2; // Add more frame headers + 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) return p + szPatHeader2; |