mirror of
https://github.com/simon987/sist2.git
synced 2025-04-18 17:56:44 +00:00
Fix some warnings in media.c
This commit is contained in:
parent
15ae2190cf
commit
b37e5a4ad4
4
third-party/libscan/libscan/media/media.c
vendored
4
third-party/libscan/libscan/media/media.c
vendored
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user