summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_mp4_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2012-04-10 11:21:47 +0000
committerIgor Sysoev <igor@sysoev.ru>2012-04-10 11:21:47 +0000
commitcbc51bb295c3103ca2678bf2afd603f42cb84f5f (patch)
treee267f1a7986eb8a72b71d9e752887ed548dbb99b /src/http/modules/ngx_http_mp4_module.c
parentbaa239c4870ba2236aeb8c54b892dd25d43d780a (diff)
downloadnginx-cbc51bb295c3103ca2678bf2afd603f42cb84f5f.tar.gz
nginx-cbc51bb295c3103ca2678bf2afd603f42cb84f5f.tar.bz2
Fixed mp4 module seek.
Diffstat (limited to 'src/http/modules/ngx_http_mp4_module.c')
-rw-r--r--src/http/modules/ngx_http_mp4_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_mp4_module.c b/src/http/modules/ngx_http_mp4_module.c
index 384125a03..442362e93 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_sample;
+ count -= start_time;
ngx_mp4_set_32value(entry->count, count);
goto found;
}