Fix of mp4 module seeking.

This commit is contained in:
Igor Sysoev 2011-11-23 07:22:15 +00:00
parent 7f59728d5b
commit 79df789b47

View File

@ -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, ngx_log_debug2(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0,
"count:%uD, duration:%uD", count, duration); "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); start_sample += (ngx_uint_t) (start_time / duration);
count -= start_sample; count -= start_sample;
ngx_mp4_set_32value(entry->count, count); ngx_mp4_set_32value(entry->count, count);