shithub: pdffs

Download patch

ref: 0cba24e79ef4e3fe049206599322cf8f434fc4b0
parent: 77b04087e2d02e9e889789ce74eda0bbffb5b781
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Fri Apr 9 09:11:02 EDT 2021

jbig2: copy input to output as is

--- a/f_jbig2.c
+++ b/f_jbig2.c
@@ -2,6 +2,18 @@
 #include <libc.h>
 #include "pdf.h"
 
+static int
+flreadall(void *aux, Buffer *bi, Buffer *bo)
+{
+	USED(aux);
+
+	bufput(bo, bi->b, bi->sz);
+	bi->off = bi->sz;
+
+	return 0;
+}
+
 Filter filterJBIG2 = {
 	.name = "JBIG2Decode",
+	.readall = flreadall,
 };