summaryrefslogtreecommitdiffstats
path: root/libavutil/file.c
Commit message (Collapse)AuthorAgeFilesLines
* libavutil: Move avpriv_open to a new file, file_open.cMartin Storsjö2013-08-101-64/+0
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* file: Move win32 utf8->wchar open wrapper to libavutilMartin Storsjö2013-08-081-0/+39
| | | | | | | | | | | | | 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-081-0/+3
| | | | | | | 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-071-1/+24
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avutil: Include io.h with a separate condition from MapViewOfFileMartin Storsjö2012-11-291-1/+3
| | | | | | | | | | | 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-151-0/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Don't include common.h from avutil.hMartin Storsjö2012-08-151-0/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavu/file: include unistd.h only when availableMans Rullgard2012-06-211-0/+2
| | | | | | | | 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-261-18/+0
|
* Do not include log.h in avutil.hMans Rullgard2011-07-031-0/+1
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Fix error check in av_file_map()Mans Rullgard2011-06-041-1/+1
| | | | | | 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-191-2/+1
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Win32 support for av_file_map()Daniel Verkamp2011-01-051-0/+26
| | | | 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-221-2/+2
| | | | | | | 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-221-1/+1
| | | | Originally committed as revision 26074 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_file_map() and av_file_unmap() functions.Stefano Sabatini2010-12-221-0/+123
Originally committed as revision 26073 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud