[nginx] svn commit: r4307 - trunk/src/http/modules

igor at sysoev.ru igor at sysoev.ru
Wed Nov 23 07:22:16 UTC 2011


Author: is
Date: 2011-11-23 07:22:15 +0000 (Wed, 23 Nov 2011)
New Revision: 4307

Modified:
   trunk/src/http/modules/ngx_http_mp4_module.c
Log:
Fix of mp4 module seeking.


Modified: trunk/src/http/modules/ngx_http_mp4_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_mp4_module.c	2011-11-22 17:02:21 UTC (rev 4306)
+++ trunk/src/http/modules/ngx_http_mp4_module.c	2011-11-23 07:22:15 UTC (rev 4307)
@@ -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-devel mailing list