Klaus Demo nginx / a40e7ee
Fix of building on platforms with 32-bit off_t. (closed #23) Igor Sysoev 10 years ago
1 changed file(s) with 9 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
186186 + ( ((u_char *) (p))[7]) )
187187
188188 #define ngx_mp4_set_64value(p, n) \
189 ((u_char *) (p))[0] = (u_char) ((n) >> 56); \
190 ((u_char *) (p))[1] = (u_char) ((n) >> 48); \
191 ((u_char *) (p))[2] = (u_char) ((n) >> 40); \
192 ((u_char *) (p))[3] = (u_char) ((n) >> 32); \
193 ((u_char *) (p))[4] = (u_char) ((n) >> 24); \
194 ((u_char *) (p))[5] = (u_char) ((n) >> 16); \
195 ((u_char *) (p))[6] = (u_char) ((n) >> 8); \
196 ((u_char *) (p))[7] = (u_char) (n)
189 ((u_char *) (p))[0] = (u_char) ((uint64_t) (n) >> 56); \
190 ((u_char *) (p))[1] = (u_char) ((uint64_t) (n) >> 48); \
191 ((u_char *) (p))[2] = (u_char) ((uint64_t) (n) >> 40); \
192 ((u_char *) (p))[3] = (u_char) ((uint64_t) (n) >> 32); \
193 ((u_char *) (p))[4] = (u_char) ( (n) >> 24); \
194 ((u_char *) (p))[5] = (u_char) ( (n) >> 16); \
195 ((u_char *) (p))[6] = (u_char) ( (n) >> 8); \
196 ((u_char *) (p))[7] = (u_char) (n)
197197
198198 #define ngx_mp4_last_trak(mp4) \
199199 &((ngx_http_mp4_trak_t *) mp4->trak.elts)[mp4->trak.nelts - 1]
10651065
10661066 atom_header = mp4->mdat_atom_header;
10671067
1068 if (atom_data_size > 0xffffffff) {
1068 if ((uint64_t) atom_data_size > 0xffffffff) {
10691069 atom_size = 1;
10701070 atom_header_size = sizeof(ngx_mp4_atom_header64_t);
10711071 ngx_mp4_set_64value(atom_header + sizeof(ngx_mp4_atom_header_t),