<html><head><meta http-equiv="Content-Type" content="text/html charset=GB2312"><meta http-equiv="Content-Type" content="text/html charset=GB2312"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi:<div><span class="Apple-tab-span" style="white-space:pre"> </span>As i new to mp4 file format,i confused about the comment.</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>"<span style="color: rgb(78, 144, 114); font-family: Monaco; font-size: 11px;">send original file if </span><span style="color: rgb(78, 144, 114); font-family: Monaco; font-size: 11px; text-decoration: underline;">moov</span><span style="color: rgb(78, 144, 114); font-family: Monaco; font-size: 11px;"> atom resides before </span><span style="color: rgb(78, 144, 114); font-family: Monaco; font-size: 11px; text-decoration: underline;">mdat</span><span style="color: rgb(78, 144, 114); font-family: Monaco; font-size: 11px;"> atom and client requests integral file</span><font color="#4e9072" face="Monaco"><span style="font-size: 11px;">¡±</span></font></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Should the ¡°before¡± should be changed with ¡°after¡±?</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Sorry about my poor English.</div><div><span class="Apple-tab-span" style="white-space:pre"> </span></div><div><br></div><div>ngx_http_mp4_module.c</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Monaco;"><span style="color: #931a68">static</span> <span style="text-decoration: underline">ngx_int_t</span></div><div style="margin: 0px; font-size: 11px; font-family: Monaco;">ngx_http_mp4_read_moov_atom(<span style="color: #006141">ngx_http_mp4_file_t</span> *mp4, <span style="color: #006141">uint64_t</span> atom_data_size)</div><div style="margin: 0px; font-size: 11px; font-family: Monaco;">{</div><div style="margin: 0px; font-size: 11px; font-family: Monaco;"> <span style="text-decoration: underline">ngx_int_t</span> rc;</div><div style="margin: 0px; font-size: 11px; font-family: Monaco;"> <span style="color: #006141">ngx_uint_t</span> no_mdat;</div><div style="margin: 0px; font-size: 11px; font-family: Monaco;"> <span style="color: #006141">ngx_buf_t</span> *atom;</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; color: rgb(0, 97, 65);"><span style="color: #000000"> </span>ngx_http_mp4_conf_t<span style="color: #000000"> *conf;</span></div><div style="margin: 0px; font-size: 11px; font-family: Monaco; min-height: 15px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Monaco;"> ngx_log_debug0(NGX_LOG_DEBUG_HTTP, mp4->file.log, 0, <span style="color: #3933ff">"mp4 </span><span style="text-decoration: underline ; color: #3933ff">moov</span><span style="color: #3933ff"> atom"</span>);</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; min-height: 15px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Monaco;"> no_mdat = (mp4-><span style="color: #0326cc">mdat_atom</span>.<span style="color: #0326cc">buf</span> == NULL);</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; min-height: 15px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Monaco;"> <span style="color: #931a68">if</span> (no_mdat && mp4-><span style="color: #0326cc">start</span> == 0 && mp4-><span style="color: #0326cc">length</span> == 0) {</div><div style="margin: 0px; font-size: 11px; font-family: Monaco;"> <span style="color: #4e9072">/*</span></div><div style="margin: 0px; font-size: 11px; font-family: Monaco; color: rgb(78, 144, 114);"> * send original file if <span style="text-decoration: underline">moov</span> atom resides before</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; color: rgb(78, 144, 114);"> * <span style="text-decoration: underline">mdat</span> atom and client requests integral file</div><div style="margin: 0px; font-size: 11px; font-family: Monaco; color: rgb(78, 144, 114);"> */</div><div style="margin: 0px; font-size: 11px; font-family: Monaco;"> <span style="color: #931a68">return</span> NGX_DECLINED;</div><div style="margin: 0px; font-size: 11px; font-family: Monaco;"> }</div></div><div style="margin: 0px; font-size: 11px; font-family: Monaco;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Monaco;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Monaco;"><hr align="left" color="#b5c4df" size="1" style="font-family: 'Segoe UI'; font-size: 14px; line-height: 21px; height: 1px; width: 210px;"><div style="font-family: 'Segoe UI'; font-size: 14px; line-height: 21px;"><div style="font-size: 10.5pt; line-height: 1.5;"><div style="font-size: 10pt; font-family: verdana; margin: 10px;"><div>Best regards,</div><div>-yurnero</div></div></div></div></div></body></html>