diff options
author | Roman Arutyunyan <arut@nginx.com> | 2014-02-14 15:14:48 +0400 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2014-02-14 15:14:48 +0400 |
commit | 1dc1b0785b89743d637fa18e6d78a4999e2cf54c (patch) | |
tree | a5e2ea5bcd08b86db9615f41a0b2084a0041accb | |
parent | 8f8bf842bcd1fee7162804a9b1c99d0a9d2c1cb7 (diff) | |
download | nginx-1dc1b0785b89743d637fa18e6d78a4999e2cf54c.tar.gz nginx-1dc1b0785b89743d637fa18e6d78a4999e2cf54c.zip |
Mp4: remove useless leading stsc entry in result mp4.
The fix removes useless stsc entry in result mp4.
If start_sample == n then current stsc entry should be skipped
and the result stsc should start with the next entry.
The reason for that is start_sample starts from 0, not 1.
-rw-r--r-- | src/http/modules/ngx_http_mp4_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_mp4_module.c b/src/http/modules/ngx_http_mp4_module.c index c29ab1ce5..426a0b97f 100644 --- a/src/http/modules/ngx_http_mp4_module.c +++ b/src/http/modules/ngx_http_mp4_module.c @@ -2481,7 +2481,7 @@ ngx_http_mp4_update_stsc_atom(ngx_http_mp4_file_t *mp4, n = (next_chunk - chunk) * samples; - if (start_sample <= n) { + if (start_sample < n) { goto found; } |