Ticket #266: mp4_mdat_atom_check.patch
| File mp4_mdat_atom_check.patch, 645 bytes (added by , 13 years ago) |
|---|
-
src/http/modules/ngx_http_mp4_module.c
old new 750 750 751 751 *prev = &mp4->mdat_atom; 752 752 753 if (start_offset > mp4->mdat_data.buf->file_last) { 754 ngx_log_error(NGX_LOG_ERR, mp4->file.log, 0, 755 "offset outside mdat atom in \"%s\"", 756 mp4->file.name.data); 757 return NGX_ERROR; 758 } 753 759 adjustment = mp4->ftyp_size + mp4->moov_size 754 760 + ngx_http_mp4_update_mdat_atom(mp4, start_offset) 755 761 - start_offset;
