Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_mp4_module.c @ 4365:d2516d4ab842 stable-1.0
Merge of r4307:
Fix of mp4 module seeking.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 14 Dec 2011 18:02:37 +0000 |
parents | d0dcaff8862b |
children | e30845779761 |
comparison
equal
deleted
inserted
replaced
4364:096c859b2113 | 4365:d2516d4ab842 |
---|---|
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 } |