# HG changeset patch # User Roman Arutyunyan # Date 1392376488 -14400 # Node ID e280ece17020ada6a294275fe2a5e91674483712 # Parent bfe536716dbf7f597d6b8874703c41eb96ab8add 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. diff --git a/src/http/modules/ngx_http_mp4_module.c b/src/http/modules/ngx_http_mp4_module.c --- 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_m n = (next_chunk - chunk) * samples; - if (start_sample <= n) { + if (start_sample < n) { goto found; }