Hi, <font face="Verdana"><font size="2">jp_liu<br><br>The "</font></font><font color="#0000ff" face="Verdana" size="2">nal_ref_idc</font><font face="Verdana"><font size="2">" in the "NAL unit" only interpret that some nal unit should be 0 and some should not be 0. But it not interpret what's the value for the IDR. So the two file all are right. You can understand the means from the specification.
<br><br>I think your decoder has some bugs. In addition, you should test h.264 file by JM which is reference software.<br><br>Best wishes<br>Alexander Tian<br><br><br></font></font><br><div><span class="gmail_quote">在07-11-8,
<b class="gmail_sendername">xiejun06</b> <<a href="mailto:xiejun06@mails.thu.edu.cn">xiejun06@mails.thu.edu.cn</a>> 写道:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div><font color="#0000ff" face="Verdana" size="2">I try the file, it can be decoded
by JM. And the difference of two file is the value of nal_ref_idc of the nal
unite, it will not effect the decoder, I think.</font></div>
<div><font face="Verdana" size="2"></font> </div>
<div align="left">
<div align="left"><font face="Verdana" size="2">
<hr style="width: 122px;" size="2">
</font></div>
<div><font color="#c0c0c0"><font face="Verdana" size="2"><span>xiejun06</span></font></font></div>
<div><font face="Verdana" size="2">2007-11-08</font></div></div>
<div><font face="Verdana" size="2">
<hr>
</font></div>
<div><font face="Verdana"><font size="2"><strong>发件人:</strong>
jp_liu</font></font></div>
<div><font face="Verdana"><font size="2"><strong>发送时间:</strong>
2007-11-08 17:50:34</font></font></div>
<div><font face="Verdana"><font size="2"><strong>收件人:</strong>
x264-devel</font></font></div>
<div><font face="Verdana"><font size="2"><strong>抄送:</strong> </font></font></div>
<div><font face="Verdana"><font size="2"><strong>主题:</strong> [x264-devel] start
code "00 00 00 01 65" and "00 00 00 01 45"</font></font></div><div><span class="e" id="q_1161f26ff8995242_1">
<div><font face="Verdana" size="2"></font> </div>
<div><font face="Verdana" size="2">
<div>x264-devel,hi</div>
<div> </div>
<div>I use two h264 encoders encode a video file, use almost the same profile,
baseline and level3.0.</div>
<div>But one of the output files like this:</div>
<div>"00 00 00 01 67 .....</div>
<div> 00 00 00 01 68 .....</div>
<div> 00 00 00 01 06 .....</div>
<div> 00 00 00 01 45 .....</div>
<div> 00 00 00 01 45 .....</div>
<div> 00 00 00 01 06 .....</div>
<div> 00 00 00 01 41 ....."</div>
<div> </div>
<div>And another one like this:</div>
<div>
<div>"00 00 00 01 67 .....</div>
<div> 00 00 00 01 68 .....</div>
<div> 00 00 00 01 06 .....</div>
<div> 00 00 00 01 65 .....</div>
<div> 00 00 00 01 65 .....</div>
<div> 00 00 00 01 06 .....</div>
<div> 00 00 00 01 41 ....."</div>
<div> </div>
<div>The strange thing is my stb decoder only can decode the first one, if
decoder the second file, it complain that</div>
<div>"The framesDropped reason is : unsupported parameter!<br>The framesDropped
reason is : corrupted header!"</div>
<div> </div>
<div>Can any expert explain it for me, Thanks very much!</div></div>
<div> </div>
<div></div>
<div>jp_liu,<a href="mailto:%3C%21--AID_FROMADDRESS_BEGIN--%3Ejp_liu@astrocom.cn%3C%21--AID_FROMADDRESS_END--%3E" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jp_liu@astrocom.cn</a></div>
<div>2007-11-08 </div></font></div></span></div></div>
<br>_______________________________________________<br>x264-devel mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:x264-devel@videolan.org">x264-devel@videolan.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mailman.videolan.org/listinfo/x264-devel" target="_blank">
http://mailman.videolan.org/listinfo/x264-devel</a><br><br></blockquote></div><br>