details:   http://hg.nginx.org/nginx/rev/2f586f1684fa
branches:  
changeset: 5544:2f586f1684fa
user:      Roman Arutyunyan <a...@nginx.com>
date:      Wed Jan 29 13:44:15 2014 +0400
description:
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.

diffstat:

 src/http/modules/ngx_http_mp4_module.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 5730c0193842 -r 2f586f1684fa src/http/modules/ngx_http_mp4_module.c
--- 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 @@ ngx_http_mp4_update_stsc_atom(ngx_http_m
         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",

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel

Reply via email to