Welcome! Log In Create A New Profile

Advanced

[nginx] Mp4: remove useless leading stsc entry in result mp4.

Roman Arutyunyan
February 14, 2014 06:18AM
details: http://hg.nginx.org/nginx/rev/e280ece17020
branches:
changeset: 5578:e280ece17020
user: Roman Arutyunyan <arut@nginx.com>
date: Fri Feb 14 15:14:48 2014 +0400
description:
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.

diffstat:

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

diffs (12 lines):

diff -r bfe536716dbf -r e280ece17020 src/http/modules/ngx_http_mp4_module.c
--- a/src/http/modules/ngx_http_mp4_module.c Thu Feb 13 16:54:00 2014 +0400
+++ b/src/http/modules/ngx_http_mp4_module.c Fri Feb 14 15:14:48 2014 +0400
@@ -2481,7 +2481,7 @@ ngx_http_mp4_update_stsc_atom(ngx_http_m

n = (next_chunk - chunk) * samples;

- if (start_sample <= n) {
+ if (start_sample < n) {
goto found;
}


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Mp4: remove useless leading stsc entry in result mp4.

Roman Arutyunyan 798 February 14, 2014 06:18AM



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

Online Users

Guests: 220
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready