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> 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> unsigned frameSize, <br>
unsigned numTruncatedBytes,<br> struct timeval presentationTime,<br> unsigned durationInMicroseconds) <br>{<br> //fFrameSize = frameSize;<br> fNumTruncatedBytes = numTruncatedBytes;<br>
fPresentationTime = presentationTime; <--- data unalign exception occurs here<br> 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>