commit 771040815d0b420a465ea44aaf431bf7e1950804
parent 137faa5ff26a059bf4d9a46f1eca5d312033d2df
Author: Tomas Hlavaty <tom@logand.com>
Date: Sun, 24 May 2020 06:01:53 +0200
enumerate valid jpeg start of frame markers
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/emacs-framebuffer.el b/emacs-framebuffer.el
@@ -106,7 +106,8 @@
(= #xd8 (framebuffer-next-u8 brook)))
(let ((n 0)
(m 0))
- (while (not (<= #xc0 m #xcf))
+ (while (not (member m '(#xc0 #xc1 #xc2 #xc3 #xc5 #xc6 #xc7 #xc8
+ #xc9 #xca #xcb #xcd #xc0e #xcf)))
(goto-char (+ (point) n))
(while (= #xff (setq m (framebuffer-next-u8 brook))))
(setq n (- (framebuffer-next-u16 brook) 2)))