mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
added pragma warning to disable msvc warning about zero-sized arrays
This commit is contained in:
@ -26,6 +26,14 @@ static ngx_int_t ngx_rtmp_mp4_reset(ngx_rtmp_session_t *s);
|
|||||||
#pragma pack(push,4)
|
#pragma pack(push,4)
|
||||||
|
|
||||||
|
|
||||||
|
/* disable zero-sized array warning by msvc */
|
||||||
|
|
||||||
|
#if (NGX_WIN32)
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable:4200)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint32_t first_chunk;
|
uint32_t first_chunk;
|
||||||
uint32_t samples_per_chunk;
|
uint32_t samples_per_chunk;
|
||||||
@ -102,6 +110,12 @@ typedef struct {
|
|||||||
uint64_t entries[0];
|
uint64_t entries[0];
|
||||||
} ngx_rtmp_mp4_offsets64_t;
|
} ngx_rtmp_mp4_offsets64_t;
|
||||||
|
|
||||||
|
|
||||||
|
#if (NGX_WIN32)
|
||||||
|
#pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user