mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
fixed windows file mapping
This commit is contained in:
@ -230,7 +230,7 @@ ngx_rtmp_mp4_mmap(ngx_fd_t fd, size_t size, off_t offset, ngx_fd_t *extra)
|
||||
void *data;
|
||||
|
||||
*extra = CreateFileMapping(fd, NULL, PAGE_READONLY,
|
||||
(DWORD) (size >> 32),
|
||||
(DWORD) ((uint64_t) size >> 32),
|
||||
(DWORD) (size & 0xffffffff),
|
||||
NULL);
|
||||
if (*extra == NULL) {
|
||||
@ -238,7 +238,7 @@ ngx_rtmp_mp4_mmap(ngx_fd_t fd, size_t size, off_t offset, ngx_fd_t *extra)
|
||||
}
|
||||
|
||||
data = MapViewOfFile(*extra, FILE_MAP_READ,
|
||||
(DWORD) (offset >> 32),
|
||||
(DWORD) ((uint64_t) offset >> 32),
|
||||
(DWORD) (offset & 0xffffffff),
|
||||
size);
|
||||
|
||||
|
Reference in New Issue
Block a user