Hello, Obviously, "no_mdat" is true if moov resides before mdat.
On May 14, 2014, at 6:59 AM, liubin <yurner...@gmail.com> wrote: > Hi: > As i new to mp4 file format,i confused about the comment. > "send original file if moov atom resides before mdat atom and client > requests integral file” > Should the “before” should be changed with “after”? > Sorry about my poor English. > > > ngx_http_mp4_module.c > > static ngx_int_t > ngx_http_mp4_read_moov_atom(ngx_http_mp4_file_t *mp4, uint64_t atom_data_size) > { > ngx_int_t rc; > ngx_uint_t no_mdat; > ngx_buf_t *atom; > ngx_http_mp4_conf_t *conf; > > ngx_log_debug0(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0, "mp4 moov atom"); > > no_mdat = (mp4->mdat_atom.buf == NULL); > > if (no_mdat && mp4->start == 0 && mp4->length == 0) { > /* > * send original file if moov atom resides before > * mdat atom and client requests integral file > */ > return NGX_DECLINED; > } > > > Best regards, > -yurnero > _______________________________________________ > nginx-devel mailing list > nginx-devel@nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx-devel _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel