aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vaapi_encode.c
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2024-12-09 20:20:02 +0100
committerAnton Khirnov <anton@khirnov.net>2024-12-15 14:02:29 +0100
commit92deed973206ce2ffeea843e0584151476365012 (patch)
tree6ff91d1ac38e7772cbb3476938454a604e143f86 /libavcodec/vaapi_encode.c
parent90af8e07b02e690a9fe60aab02a8bccd2cbf3f01 (diff)
downloadffmpeg-92deed973206ce2ffeea843e0584151476365012.tar.gz
avutil/file: fix av_file_map file mapping on Windows
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@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/vaapi_encode.c')
0 files changed, 0 insertions, 0 deletions