<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#000000 size=2>Hi guys,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>after reading more ont he encoder, I discovered that NAL unit of type 11 will declare end of stream. Is it the one which the currentNALUnitEndsAccessUnit will check?</FONT></DIV>
<DIV><FONT face=Arial size=2>If the NAL unit that is read from the file or buffer belongs to this type, then return false, else retun true?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>// Is this correct?</FONT></DIV>
<DIV><FONT face=Arial size=2>int currentNALUnitEndsAccessUnit()</FONT></DIV>
<DIV><FONT face=Arial size=2>{</FONT></DIV>
<DIV><FONT face=Arial size=2> if(nal_type ==11)</FONT></DIV>
<DIV><FONT face=Arial size=2>return 1;</FONT></DIV>
<DIV><FONT face=Arial size=2>else</FONT></DIV>
<DIV><FONT face=Arial size=2>return 0;</FONT></DIV>
<DIV><FONT face=Arial size=2>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Many thanks once again.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>zkunhui</FONT></DIV></BODY></HTML>