MP4 - start time is out mp4 stts samples
Igor Sysoev
igor at sysoev.ru
Tue Nov 22 10:30:46 UTC 2011
On Tue, Nov 22, 2011 at 01:43:53AM -0500, sibsoft wrote:
> Here it goes
> http://dl.dropbox.com/u/50505452/error.log.gz
The attached patch should help.
--
Igor Sysoev
-------------- next part --------------
Index: src/http/modules/ngx_http_mp4_module.c
===================================================================
--- src/http/modules/ngx_http_mp4_module.c (revision 4303)
+++ src/http/modules/ngx_http_mp4_module.c (working copy)
@@ -1899,7 +1899,7 @@
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0,
"count:%uD, duration:%uD", count, duration);
- if (start_time < count * duration) {
+ if (start_time < (uint64_t) count * duration) {
start_sample += (ngx_uint_t) (start_time / duration);
count -= start_sample;
ngx_mp4_set_32value(entry->count, count);
More information about the nginx
mailing list