Maybe Comment Bug

Roman Arutyunyan arut at nginx.com
Wed May 14 05:53:09 UTC 2014


Hello,

Obviously, "no_mdat" is true if moov resides before mdat.

On May 14, 2014, at 6:59 AM, liubin <yurnerola at 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 at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel



More information about the nginx-devel mailing list