From b37e5a4ad43f376fc0f9a3eb822b67723290141f Mon Sep 17 00:00:00 2001
From: simon987 <me@simon987.net>
Date: Sat, 8 Jan 2022 11:06:14 -0500
Subject: [PATCH] Fix some warnings in media.c

---
 third-party/libscan/libscan/media/media.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/third-party/libscan/libscan/media/media.c b/third-party/libscan/libscan/media/media.c
index 411e8cc..4881d19 100644
--- a/third-party/libscan/libscan/media/media.c
+++ b/third-party/libscan/libscan/media/media.c
@@ -3,7 +3,7 @@
 
 #define MIN_SIZE 32
 #define AVIO_BUF_SIZE 8192
-#define IS_VIDEO(fmt) (fmt->iformat->name && strcmp(fmt->iformat->name, "image2") != 0)
+#define IS_VIDEO(fmt) ((fmt)->iformat->name && strcmp((fmt)->iformat->name, "image2") != 0)
 
 #define STORE_AS_IS ((void*)-1)
 
@@ -534,7 +534,7 @@ long memfile_seek(void *ptr, long offset, int whence) {
     memfile_t *mem = ptr;
 
     if (whence == 0x10000) {
-        return mem->size;
+        return (long) mem->size;
     }
 
     int ret = fseek(mem->file, offset, whence);