Ross,<br><br>I am tring to port the live555 to our embedded system with uCOS support. <br><br>For now, the MPEG2TransportStream works fine (on PC and embedded device), except for the slow performance when using VLC.<br><br>
I have added our H264 support class, in addition to the H264RTPSink and FUAFragment classes, it works fine on PC. <br>&nbsp;Then I try to run run it on our embeded device (there is no problem to compile it), an memory unalign exception always occurs when first time calling the AfterGettingFrame1 function of our H264StreamFrame class (which inherits from the H264StreamFrame class)<br>
<br>=================================================<br>class H264VideoStreamFramer4LongCircle : public H264VideoStreamFramer<br><br>......<br><br>void H264VideoStreamFramer4LC::afterGettingFrame1(<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; unsigned frameSize, <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; unsigned numTruncatedBytes,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; struct timeval presentationTime,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unsigned durationInMicroseconds) <br>{<br>&nbsp;&nbsp;&nbsp; //fFrameSize = frameSize;<br>&nbsp;&nbsp;&nbsp; fNumTruncatedBytes = numTruncatedBytes;<br>
&nbsp;&nbsp;&nbsp; fPresentationTime = presentationTime;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;--- data unalign exception occurs here<br>&nbsp;&nbsp;&nbsp; fDurationInMicroseconds = durationInMicroseconds;<br>......<br>=================================================<br>
<br><br>I have no idea how to detect where the assess unalign coding exists, and how to troubleshooting this type of problem. <br>I think the compiler should take care of the data alignment, and always allocate the the bytes a power of 2 (ie, word). <br>
<br>Could you please point me a correct direction about this issue?<br><br>Happy New Year!<br>-kevin<br><br><br>