winshining / nginx-http-flv-module

A media streaming server based on nginx-rtmp-module. In addtion to the features nginx-rtmp-module provides, HTTP-FLV, GOP cache, VHosts (one IP for multi domain names) and JSON style statistics are supported now.
BSD 2-Clause "Simplified" License
2.71k stars 567 forks source link

Error compiling v1.2.122 #235

Closed dvershinin closed 1 year ago

dvershinin commented 1 year ago
nginx-http-flv-module-1.2.11/ngx_rtmp_record_module.c: In function 'ngx_rtmp_record_node_open':
nginx-http-flv-module-1.2.11/ngx_rtmp_record_module.c:549:9: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
         tag_size = ntohl(*(uint32_t *) buf);
         ^
winshining commented 1 year ago

Reproduced by compiling gcc-4.6.3 on Debian 7.x with option -Os and -Werror=strict-aliasing. Fixed already.