Maybe Comment Bug

liubin yurnerola at gmail.com
Wed May 14 02:59:59 UTC 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20140514/f3dfa56d/attachment.html>


More information about the nginx-devel mailing list