Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2018-09-06 21:46:16 +0300
committerMarton Balint <cus@passwd.hu>2018-09-09 22:21:42 +0300
commit4737387d288d1e87e7c7df6203a42d6b1e88231e (patch)
tree69e773b38dc8136d3650947244b873321e679eca /libavutil/file.h
parentbd3c27fd7aa35ab3c0de03ffff598840634c7c2f (diff)
avutil/file: allow mapping 0 byte files with av_file_map
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavutil/file.h')
-rw-r--r--libavutil/file.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/file.h b/libavutil/file.h
index 8666c7b1d5..3ef4a6022c 100644
--- a/libavutil/file.h
+++ b/libavutil/file.h
@@ -33,6 +33,8 @@
* allocated buffer or map it with mmap() when available.
* In case of success set *bufptr to the read or mmapped buffer, and
* *size to the size in bytes of the buffer in *bufptr.
+ * Unlike mmap this function succeeds with zero sized files, in this
+ * case *bufptr will be set to NULL and *size will be set to 0.
* The returned buffer must be released with av_file_unmap().
*
* @param log_offset loglevel offset used for logging