Mercurial > hg > nginx
comparison src/http/modules/ngx_http_mp4_module.c @ 5807:6d468b45f40e
Mp4: use trak->smhd_size in ngx_http_mp4_read_smhd_atom().
Reported by Gang Li.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Tue, 19 Aug 2014 14:13:39 +0400 |
parents | 0c0dd1aacdf5 |
children | 2cd019520210 |
comparison
equal
deleted
inserted
replaced
5806:8cdec62a7751 | 5807:6d468b45f40e |
---|---|
1838 atom = &trak->smhd_atom_buf; | 1838 atom = &trak->smhd_atom_buf; |
1839 atom->temporary = 1; | 1839 atom->temporary = 1; |
1840 atom->pos = atom_header; | 1840 atom->pos = atom_header; |
1841 atom->last = atom_header + atom_size; | 1841 atom->last = atom_header + atom_size; |
1842 | 1842 |
1843 trak->vmhd_size += atom_size; | 1843 trak->smhd_size += atom_size; |
1844 trak->out[NGX_HTTP_MP4_SMHD_ATOM].buf = atom; | 1844 trak->out[NGX_HTTP_MP4_SMHD_ATOM].buf = atom; |
1845 | 1845 |
1846 ngx_mp4_atom_next(mp4, atom_data_size); | 1846 ngx_mp4_atom_next(mp4, atom_data_size); |
1847 | 1847 |
1848 return NGX_OK; | 1848 return NGX_OK; |