Welcome! Log In Create A New Profile

Advanced

[nginx] Mp4: fix seeks to standalone last chunk.

Roman Arutyunyan
January 29, 2014 04:46AM
details: http://hg.nginx.org/nginx/rev/2f586f1684fa
branches:
changeset: 5544:2f586f1684fa
user: Roman Arutyunyan <arut@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
Subject Author Views Posted

[nginx] Mp4: fix seeks to standalone last chunk.

Roman Arutyunyan 881 January 29, 2014 04:46AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 140
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready