<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 Ross,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2><FONT face="Times New Roman">> fFrameSize = g_video_enc_rbuf->read(fTo,fMaxSize,0);<BR>>//g_video_enc_rbuf is a ring buffer which contains the encoded video</FONT><BR><BR>> This will work only if the 'read()' function returns only a complete<BR>> NAL unit - nothing more and nothing less.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>for the below comment which u made, can I check with you further. I can set my encoder to produce one frame one slice (VCL NAL unit), and each NAL unit size is limited slightly less than the MTU for LAN. Therefore, my NAL unit will not be fragmented, as such can this statement work?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>SInce one frame one slice (VCL NAL unit), therefore I can simply write a <FONT face=Arial size=2>currentNALUnitEndsAccessUnit() to always be true?</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT size=2>int currentNALUnitEndsAccessUnit()</FONT></DIV>
<DIV><FONT size=2>{</FONT></DIV>
<DIV><FONT size=2>return 1</FONT></DIV>
<DIV><FONT size=2>}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Starting to get the hang of it. Just realised that the fPresentationTime will overwrite the time in SEI during decoding.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Many thanks for all the help in getting me started on H.264</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Zkunhui</FONT></DIV></BODY></HTML>