From 654a56e06a5d5b8a25bdbc8d5a84bd8b962de1cb Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 10 Apr 2012 11:27:43 +0000 Subject: [PATCH] Fixed previous commit. --- src/http/modules/ngx_http_mp4_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/modules/ngx_http_mp4_module.c b/src/http/modules/ngx_http_mp4_module.c index 442362e93..9c198eea8 100644 --- a/src/http/modules/ngx_http_mp4_module.c +++ b/src/http/modules/ngx_http_mp4_module.c @@ -1910,7 +1910,7 @@ ngx_http_mp4_update_stts_atom(ngx_http_mp4_file_t *mp4, if (start_time < (uint64_t) count * duration) { start_sample += (ngx_uint_t) (start_time / duration); - count -= start_time; + count -= (uint32_t) (start_time / duration); ngx_mp4_set_32value(entry->count, count); goto found; }