]> git.kaiwu.me - nginx.git/commitdiff
Fixed previous commit.
authorIgor Sysoev <igor@sysoev.ru>
Tue, 10 Apr 2012 11:27:43 +0000 (11:27 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 10 Apr 2012 11:27:43 +0000 (11:27 +0000)
src/http/modules/ngx_http_mp4_module.c

index 442362e934286ddf15f18f8192347357e67ee621..9c198eea81a24d84232eea039cf2575152c1f9fb 100644 (file)
@@ -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;
         }