X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavutil%2Ffile.h;h=3ef4a6022cd08cb918f55a6b1c4c9facf68065c8;hb=ff29ca2f1f835cb98e4f091a79956f0bbf109863;hp=8666c7b1d5ee6e1a86a47734efb1d8e943f37f66;hpb=33bd2b99a1c2cf3fc8b810a11c6615a37d9f9cf4;p=ffmpeg diff --git a/libavutil/file.h b/libavutil/file.h index 8666c7b1d5e..3ef4a6022cd 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