Fix some warnings in media.c

This commit is contained in:
simon987 2022-01-08 11:06:14 -05:00
parent 15ae2190cf
commit b37e5a4ad4

View File

@ -3,7 +3,7 @@
#define MIN_SIZE 32 #define MIN_SIZE 32
#define AVIO_BUF_SIZE 8192 #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) #define STORE_AS_IS ((void*)-1)
@ -534,7 +534,7 @@ long memfile_seek(void *ptr, long offset, int whence) {
memfile_t *mem = ptr; memfile_t *mem = ptr;
if (whence == 0x10000) { if (whence == 0x10000) {
return mem->size; return (long) mem->size;
} }
int ret = fseek(mem->file, offset, whence); int ret = fseek(mem->file, offset, whence);