]> git.kaiwu.me - nginx.git/commitdiff
Fix of mp4 module seeking.
authorIgor Sysoev <igor@sysoev.ru>
Wed, 23 Nov 2011 07:22:15 +0000 (07:22 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 23 Nov 2011 07:22:15 +0000 (07:22 +0000)
src/http/modules/ngx_http_mp4_module.c

index a4a47ee8efc3496bfdda26ff48e826a6c51688cd..3c9f88cfc5740c9c7e67d200c7a8e4ba48113de5 100644 (file)
@@ -1899,7 +1899,7 @@ ngx_http_mp4_update_stts_atom(ngx_http_mp4_file_t *mp4,
         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);