mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-16 08:41:08 +02:00
fixed chunk count test in mp4 parser
This commit is contained in:
parent
d3ce27a96c
commit
8a96e7942a
|
@ -880,7 +880,7 @@ ngx_rtmp_mp4_parse_stsc(ngx_rtmp_session_t *s, u_char *pos, u_char *last)
|
|||
|
||||
t->chunks = (ngx_rtmp_mp4_chunks_t *) pos;
|
||||
|
||||
if (pos + sizeof(*t->chunks) + ngx_rtmp_r32(t->times->entry_count) *
|
||||
if (pos + sizeof(*t->chunks) + ngx_rtmp_r32(t->chunks->entry_count) *
|
||||
sizeof(t->chunks->entries[0])
|
||||
<= last)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue