Mercurial > hg > nginx
changeset 5544:2f586f1684fa
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.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 29 Jan 2014 13:44:15 +0400 |
parents | 5730c0193842 |
children | 01e2a5bcdd8f |
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 Wed Jan 29 13:33:45 2014 +0400 +++ b/src/http/modules/ngx_http_mp4_module.c Wed Jan 29 13:44:15 2014 +0400 @@ -2494,7 +2494,7 @@ 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",