# HG changeset patch # User Igor Sysoev # Date 1334057263 0 # Node ID dbbc5ad462166c8aee05e2d7864b4fe12ff1d98e # Parent 79aab5f5b2014899783468aad2f27d3d40cd294f Fixed previous commit. diff --git a/src/http/modules/ngx_http_mp4_module.c b/src/http/modules/ngx_http_mp4_module.c --- 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_m 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; }