changeset 5578:e280ece17020

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.
author Roman Arutyunyan <arut@nginx.com>
date Fri, 14 Feb 2014 15:14:48 +0400
parents bfe536716dbf
children 7586e7b2dbe9
files src/http/modules/ngx_http_mp4_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/modules/ngx_http_mp4_module.c	Thu Feb 13 16:54:00 2014 +0400
+++ b/src/http/modules/ngx_http_mp4_module.c	Fri Feb 14 15:14:48 2014 +0400
@@ -2481,7 +2481,7 @@
 
         n = (next_chunk - chunk) * samples;
 
-        if (start_sample <= n) {
+        if (start_sample < n) {
             goto found;
         }