summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2011-12-26 10:49:03 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2011-12-26 10:49:03 +0000
commit6a56732e981b5d628709677755c3eb015ab0c931 (patch)
tree40d5e736e43295f0d7a7039a500d315ba9e2181c
parentb65597ecd522a0c60d52e864c336ac7602b8c99c (diff)
downloadnginx-6a56732e981b5d628709677755c3eb015ab0c931.tar.gz
nginx-6a56732e981b5d628709677755c3eb015ab0c931.tar.bz2
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.
Diffstat (limited to '')
-rw-r--r--src/http/modules/ngx_http_mp4_module.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_mp4_module.c b/src/http/modules/ngx_http_mp4_module.c
index 3c9f88cfc..7bfb3db66 100644
--- a/src/http/modules/ngx_http_mp4_module.c
+++ b/src/http/modules/ngx_http_mp4_module.c
@@ -2382,6 +2382,8 @@ found:
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;