comparison src/http/modules/ngx_http_mp4_module.c @ 4577:79aab5f5b201

Fixed mp4 module seek.
author Igor Sysoev <igor@sysoev.ru>
date Tue, 10 Apr 2012 11:21:47 +0000
parents 13e09cf11d4e
children dbbc5ad46216
comparison
equal deleted inserted replaced
4576:876e6b0814a5 4577:79aab5f5b201
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_sample; 1913 count -= start_time;
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;