summaryrefslogtreecommitdiff
path: root/libavutil/file.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-04-12 21:17:26 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-19 19:04:28 +0200
commit490a022d86ef1c506a79744c5a95368af356fc69 (patch)
tree411f974cc5804db851793d62f6c9614ca2cee2cb /libavutil/file.c
parent9e5c62c97fc0a6ee5764ec69cc6c237b5f70026b (diff)
lavu: remove misc disabled cruft
Diffstat (limited to 'libavutil/file.c')
-rw-r--r--libavutil/file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavutil/file.c b/libavutil/file.c
index 757e73bafb..3dcce7c2f8 100644
--- a/libavutil/file.c
+++ b/libavutil/file.c
@@ -47,7 +47,6 @@ int av_file_map(const char *filename, uint8_t **bufptr, size_t *size,
av_unused void *ptr;
off_t off_size;
char errbuf[128];
- size_t max_size = HAVE_MMAP ? SIZE_MAX : FF_INTERNAL_MEM_TYPE_MAX_VALUE;
*bufptr = NULL;
if (fd < 0) {
@@ -66,7 +65,7 @@ int av_file_map(const char *filename, uint8_t **bufptr, size_t *size,
}
off_size = st.st_size;
- if (off_size > max_size) {
+ if (off_size > SIZE_MAX) {
av_log(&file_log_ctx, AV_LOG_ERROR,
"File size for file '%s' is too big\n", filename);
close(fd);