[nginx] svn commit: r4383 - trunk/src/http/modules

mdounin at mdounin.ru mdounin at mdounin.ru
Mon Dec 26 10:49:04 UTC 2011


Author: mdounin
Date: 2011-12-26 10:49:03 +0000 (Mon, 26 Dec 2011)
New Revision: 4383

Log:
Fixed mp4 if first entry in stsc was skipped (ticket #72).

If first entry in stsc atom was skipped, and seek was to chunk boundary,
than first_chunk in the generated stsc table wasn't set to 1.


Modified:
   trunk/src/http/modules/ngx_http_mp4_module.c

Modified: trunk/src/http/modules/ngx_http_mp4_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_mp4_module.c	2011-12-25 20:08:37 UTC (rev 4382)
+++ trunk/src/http/modules/ngx_http_mp4_module.c	2011-12-26 10:49:03 UTC (rev 4383)
@@ -2382,6 +2382,8 @@
     data->pos = (u_char *) entry;
     atom_size = sizeof(ngx_mp4_stsc_atom_t) + (data->last - data->pos);
 
+    ngx_mp4_set_32value(entry->chunk, 1);
+
     if (trak->chunk_samples) {
 
         first = &trak->stsc_chunk_entry;



More information about the nginx-devel mailing list