]> git.kaiwu.me - nginx.git/commitdiff
Mp4: use trak->smhd_size in ngx_http_mp4_read_smhd_atom().
authorRoman Arutyunyan <arut@nginx.com>
Tue, 19 Aug 2014 10:13:39 +0000 (14:13 +0400)
committerRoman Arutyunyan <arut@nginx.com>
Tue, 19 Aug 2014 10:13:39 +0000 (14:13 +0400)
Reported by Gang Li.

src/http/modules/ngx_http_mp4_module.c

index 8f439ba923953654ed9a42e563570fdfda22ebc9..980bf5719177e470030f9aee25e480f45beb8bd4 100644 (file)
@@ -1840,7 +1840,7 @@ ngx_http_mp4_read_smhd_atom(ngx_http_mp4_file_t *mp4, uint64_t atom_data_size)
     atom->pos = atom_header;
     atom->last = atom_header + atom_size;
 
-    trak->vmhd_size += atom_size;
+    trak->smhd_size += atom_size;
     trak->out[NGX_HTTP_MP4_SMHD_ATOM].buf = atom;
 
     ngx_mp4_atom_next(mp4, atom_data_size);