Use MAP_FAILED to check for mmap failure instead of manuallyrecreating the value.
file: Fix mmap error check.Signed-off-by: Michael Niedermayer <email@example.com>
Merge remote branch 'qatar/master'
lavu: remove misc disabled cruft
Replace FFmpeg with Libav in licence headers
Signed-off-by: Mans Rullgard <firstname.lastname@example.org>
Win32 support for av_file_map()
Originally committed as revision 26221 to svn://svn.ffmpeg.org/ffmpeg/trunk
Fix av_file_map(): replace stat(filename, &st) with fstat(fd, &st).
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.
Originally committed as revision 26074 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add av_file_map() and av_file_unmap() functions.
Originally committed as revision 26073 to svn://svn.ffmpeg.org/ffmpeg/trunk