Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_mp4_module.c @ 4578:dbbc5ad46216
Fixed previous commit.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 10 Apr 2012 11:27:43 +0000 |
parents | 79aab5f5b201 |
children | 778ea2f7268c |
comparison
equal
deleted
inserted
replaced
4577:79aab5f5b201 | 4578:dbbc5ad46216 |
---|---|
1908 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0, | 1908 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0, |
1909 "count:%uD, duration:%uD", count, duration); | 1909 "count:%uD, duration:%uD", count, duration); |
1910 | 1910 |
1911 if (start_time < (uint64_t) count * duration) { | 1911 if (start_time < (uint64_t) count * duration) { |
1912 start_sample += (ngx_uint_t) (start_time / duration); | 1912 start_sample += (ngx_uint_t) (start_time / duration); |
1913 count -= start_time; | 1913 count -= (uint32_t) (start_time / duration); |
1914 ngx_mp4_set_32value(entry->count, count); | 1914 ngx_mp4_set_32value(entry->count, count); |
1915 goto found; | 1915 goto found; |
1916 } | 1916 } |
1917 | 1917 |
1918 start_sample += count; | 1918 start_sample += count; |