[FFmpeg-devel] [PATCH] avutil/file: fix av_file_map file mapping on Windows

Anton Khirnov anton at khirnov.net
Sat Dec 14 11:57:31 EET 2024


Quoting Kacper Michajłow (2024-12-09 20:20:02)
> This makes the behavior of av_file_map() the same on Windows as it is on
> other platforms. The file is opened as read-only, but the mapping is
> copy-on-write, allowing the user to write to the memory pages returned
> by av_file_map().
> 
> This commit fixes libavutil\tests\file.c test, which would crash when
> trying to write to a read-only memory page.
> 
> Signed-off-by: Kacper Michajłow <kasper93 at gmail.com>
> ---
>  libavutil/file.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Queued, will push soonish.

Thanks,
-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list