mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 01:12:40 +08:00
Mp4: fix seeks to standalone last chunk.
If seek position is within the last track chunk and that chunk is standalone (stsc entry describes only this chunk) such seek generates stsc seek error. The problem is that chunk numbers start with 1, not with 0.
This commit is contained in:
parent
88f9b411f0
commit
d3e0bf306b
@ -2494,7 +2494,7 @@ ngx_http_mp4_update_stsc_atom(ngx_http_mp4_file_t *mp4,
|
||||
entry++;
|
||||
}
|
||||
|
||||
next_chunk = trak->chunks;
|
||||
next_chunk = trak->chunks + 1;
|
||||
|
||||
ngx_log_debug4(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0,
|
||||
"start_sample:%uD, chunk:%uD, chunks:%uD, samples:%uD",
|
||||
|
Loading…
Reference in New Issue
Block a user