Mercurial > hg > nginx
comparison src/http/modules/ngx_http_mp4_module.c @ 4306:05f3174483de
Fix of mp4 module seeking.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 23 Nov 2011 07:22:15 +0000 |
parents | 71cdac0b9ea6 |
children | b4d54fa76853 |
comparison
equal
deleted
inserted
replaced
4305:f68047884e83 | 4306:05f3174483de |
---|---|
1897 duration = ngx_mp4_get_32value(entry->duration); | 1897 duration = ngx_mp4_get_32value(entry->duration); |
1898 | 1898 |
1899 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0, | 1899 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0, |
1900 "count:%uD, duration:%uD", count, duration); | 1900 "count:%uD, duration:%uD", count, duration); |
1901 | 1901 |
1902 if (start_time < count * duration) { | 1902 if (start_time < (uint64_t) count * duration) { |
1903 start_sample += (ngx_uint_t) (start_time / duration); | 1903 start_sample += (ngx_uint_t) (start_time / duration); |
1904 count -= start_sample; | 1904 count -= start_sample; |
1905 ngx_mp4_set_32value(entry->count, count); | 1905 ngx_mp4_set_32value(entry->count, count); |
1906 goto found; | 1906 goto found; |
1907 } | 1907 } |