mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
fixed chunk count test in mp4 parser
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user