summaryrefslogtreecommitdiff
path: root/libavutil/file.c
Commit message (Collapse)AuthorAge
* Don't anonymously typedef structsDiego Biurrun2015-02-14
|
* libavutil: Move avpriv_open to a new file, file_open.cMartin Storsjö2013-08-10
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* file: Move win32 utf8->wchar open wrapper to libavutilMartin Storsjö2013-08-08
| | | | | | | | | | | | | When libavformat was changed to use the new avpriv_open function in 51eb213d001, this silently bypassed the existing wrapper for win32. Move the win32 wrapper into libavutil/file.c to make sure it gets called everywhere (not just in the libavformat case). This makes sure that non-ascii file names gets opened properly (where file names internally are stored as utf8, but they get converted to wchar_t and opened with _wsopen). Signed-off-by: Martin Storsjö <martin@martin.st>
* libavutil: Don't use fcntl if the function does not existDerek Buitenhuis2013-08-08
| | | | | | | Not all platforms have the function. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* libavutil: add avpriv_open() to open files with close-on-exec flagRémi Denis-Courmont2013-08-07
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avutil: Include io.h with a separate condition from MapViewOfFileMartin Storsjö2012-11-29
| | | | | | | | | | | The existence of MapViewOfFile isn't linked to the existence of io.h. Not all versions of windows have MapViewOfFile (in particular, Windows Phone 8 and the "metro" windows 8 API subset don't), while they still have io.h (and need it for open/read/close). Signed-off-by: Martin Storsjö <martin@martin.st>
* Add some more missing includes after removing the implicit common.hMartin Storsjö2012-08-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Don't include common.h from avutil.hMartin Storsjö2012-08-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavu/file: include unistd.h only when availableMans Rullgard2012-06-21
| | | | | | | | The unistd.h header is only needed for the close() declaration. If this header is not available, the close() declaration may be provided by another header, e.g. io.h. Signed-off-by: Mans Rullgard <mans@mansr.com>
* libavutil: Remove pointless file test program.Diego Biurrun2012-01-26
|
* Do not include log.h in avutil.hMans Rullgard2011-07-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Fix error check in av_file_map()Mans Rullgard2011-06-04
| | | | | | On failure, mmap() returns MAP_FAILED, which may or may not be -1. Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavu: remove misc disabled cruftAnton Khirnov2011-04-19
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Win32 support for av_file_map()Daniel Verkamp2011-01-05
| | | | Originally committed as revision 26221 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix av_file_map(): replace stat(filename, &st) with fstat(fd, &st).Stefano Sabatini2010-12-22
| | | | | | | The file might be replaced between open() and stat(). Spotted by Mans. Originally committed as revision 26075 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace lstat() with stat() in av_file_map(). The lstat() use was wrong.Stefano Sabatini2010-12-22
| | | | Originally committed as revision 26074 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_file_map() and av_file_unmap() functions.Stefano Sabatini2010-12-22
Originally committed as revision 26073 to svn://svn.ffmpeg.org/ffmpeg/trunk