[FFmpeg-devel] [PATCH] Windows support for av_file_map()

Michael Niedermayer michaelni
Sat Jan 1 19:39:00 CET 2011


On Fri, Dec 31, 2010 at 02:35:50AM -0700, Daniel Verkamp wrote:
> Hi,
> 
> Here's a simple implementation of av_file_map() using
> CreateFileMapping() and MapViewOfFile(), which are the rough Win32
> equivalent of mmap().
> 
> This currently maps a read-only view of the file; this could be
> changed to R/W to match the mmap() path if desired, but any code
> expecting to actually use it for writing will fail with the non-mmap()
> path anyway since the file is never written back in that case.
> 
> Thanks,
> -- Daniel Verkamp

lgtm if tested

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110101/14025b4b/attachment.pgp>



More information about the ffmpeg-devel mailing list