Klaus Demo nginx / 6883ab1
Merge of r4283: Fix of "Content-Length" header of MP4 response if start argument was used. Patch by Piotr Sikora. Igor Sysoev 10 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
10651065
10661066 atom_data_size = mp4->mdat_data.buf->file_last - start_offset;
10671067 mp4->mdat_data.buf->file_pos = start_offset;
1068 mp4->content_length += atom_data_size;
10691068
10701069 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0,
10711070 "mdat new offset @%O:%O", start_offset, atom_data_size);
10811080 atom_size = sizeof(ngx_mp4_atom_header_t) + atom_data_size;
10821081 atom_header_size = sizeof(ngx_mp4_atom_header_t);
10831082 }
1083
1084 mp4->content_length += atom_header_size + atom_data_size;
10841085
10851086 ngx_mp4_set_32value(atom_header, atom_size);
10861087 ngx_mp4_set_atom_name(atom_header, 'm', 'd', 'a', 't');