Mercurial > hg > nginx
comparison src/http/modules/ngx_http_mp4_module.c @ 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 | 2f586f1684fa |
children | 517b5b599e3f |
comparison
equal
deleted
inserted
replaced
5577:bfe536716dbf | 5578:e280ece17020 |
---|---|
2479 "samples:%uD, id:%uD", | 2479 "samples:%uD, id:%uD", |
2480 start_sample, chunk, next_chunk - chunk, samples, id); | 2480 start_sample, chunk, next_chunk - chunk, samples, id); |
2481 | 2481 |
2482 n = (next_chunk - chunk) * samples; | 2482 n = (next_chunk - chunk) * samples; |
2483 | 2483 |
2484 if (start_sample <= n) { | 2484 if (start_sample < n) { |
2485 goto found; | 2485 goto found; |
2486 } | 2486 } |
2487 | 2487 |
2488 start_sample -= n; | 2488 start_sample -= n; |
2489 | 2489 |