mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
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.
This commit is contained in:
parent
8f8bf842bc
commit
1dc1b0785b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user