Basic support for WordPerfect files

This commit is contained in:
2021-09-06 14:08:53 -04:00
parent f16ead1902
commit 27560a82bb
8 changed files with 381 additions and 379 deletions

View File

@@ -9,8 +9,8 @@
#include <magic.h>
#define MIN_VIDEO_SIZE 1024 * 64
#define MIN_IMAGE_SIZE 1024 * 2
#define MIN_VIDEO_SIZE (1024 * 64)
#define MIN_IMAGE_SIZE (1024 * 2)
int fs_read(struct vfile *f, void *buf, size_t size) {
@@ -182,6 +182,8 @@ void parse(void *arg) {
return;
} else if (is_msdoc(&ScanCtx.msdoc_ctx, doc->mime)) {
parse_msdoc(&ScanCtx.msdoc_ctx, &job->vfile, doc);
} else if (is_wpd(&ScanCtx.wpd_ctx, doc->mime)) {
parse_wpd(&ScanCtx.wpd_ctx, &job->vfile, doc);
}
abort: