summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2011-12-14 18:02:37 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2011-12-14 18:02:37 +0000
commite415ec3b9987bf1e5cf53f87d8463952ec8d9e61 (patch)
tree550a471141b3f988ce7bbe750a3bebc62b1dd826
parent344cb11f29a4dc65ab145802d689357f310874bb (diff)
downloadnginx-e415ec3b9987bf1e5cf53f87d8463952ec8d9e61.tar.gz
nginx-e415ec3b9987bf1e5cf53f87d8463952ec8d9e61.tar.bz2
Merge of r4307:
Fix of mp4 module seeking.
Diffstat (limited to '')
-rw-r--r--src/http/modules/ngx_http_mp4_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_mp4_module.c b/src/http/modules/ngx_http_mp4_module.c
index a4a47ee8e..3c9f88cfc 100644
--- a/src/http/modules/ngx_http_mp4_module.c
+++ b/src/http/modules/ngx_http_mp4_module.c
@@ -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);