]> git.kaiwu.me - nginx.git/commitdiff
Fixing mp4 module seeking on 32-bit platforms.
authorIgor Sysoev <igor@sysoev.ru>
Tue, 11 Oct 2011 10:12:44 +0000 (10:12 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 11 Oct 2011 10:12:44 +0000 (10:12 +0000)
src/http/modules/ngx_http_mp4_module.c

index 1140d91743adbae3ff9adba15ff3f5569788934f..a6752123aa9be042ade99f5e625a75292d187109 100644 (file)
@@ -1882,7 +1882,7 @@ ngx_http_mp4_update_stts_atom(ngx_http_mp4_file_t *mp4,
     }
 
     entries = trak->time_to_sample_entries;
-    start_time = mp4->start * trak->timescale / 1000;
+    start_time = (uint64_t) mp4->start * trak->timescale / 1000;
 
     ngx_log_debug1(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0,
                    "time-to-sample start_time:%uL", start_time);