diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2014-01-29 13:30:36 +0400 |
|---|---|---|
| committer | Roman Arutyunyan <arut@nginx.com> | 2014-01-29 13:30:36 +0400 |
| commit | 870733ebd6275ac917d1a517760cd1c283870c59 (patch) | |
| tree | b20682bfdc44e44ae30c69fc2000e16b680c7c3e /src | |
| parent | c94c24b1773e39e610ad81e46872fc2a58c7a88d (diff) | |
| download | nginx-870733ebd6275ac917d1a517760cd1c283870c59.tar.gz nginx-870733ebd6275ac917d1a517760cd1c283870c59.tar.bz2 | |
Mp4: fix seeks after the last key frame.
Mp4 module does not allow seeks after the last key frame. Since
stss atom only contains key frames it's usually shorter than
other track atoms. That leads to stss seek error when seek
position is close to the end of file. The fix outputs empty
stss frame instead of generating error.
Diffstat (limited to 'src')
| -rw-r--r-- | src/http/modules/ngx_http_mp4_module.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/http/modules/ngx_http_mp4_module.c b/src/http/modules/ngx_http_mp4_module.c index d900fb8d1..da91fde27 100644 --- a/src/http/modules/ngx_http_mp4_module.c +++ b/src/http/modules/ngx_http_mp4_module.c @@ -2153,11 +2153,8 @@ ngx_http_mp4_update_stss_atom(ngx_http_mp4_file_t *mp4, entry++; } - ngx_log_error(NGX_LOG_ERR, mp4->file.log, 0, - "start sample is out of mp4 stss atom in \"%s\"", - mp4->file.name.data); - - return NGX_ERROR; + ngx_log_debug0(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0, + "start sample is out of mp4 stss atom"); found: |
