<br><font size=2 face="sans-serif">I ran into some strange timer manipulation
problem while doing porting for TI NDK and had to make following change.</font>
<br>
<br><font size=2 face="sans-serif">#ifdef TIME_BASE</font>
<br><font size=2 face="sans-serif">typedef TIME_BASE time_base_seconds;</font>
<br><font size=2 face="sans-serif">#else</font>
<br><font size=2 color=red face="sans-serif"><b>typedef int time_base_seconds;</b></font>
<br><font size=2 face="sans-serif">#endif</font>
<br>
<br><font size=2 face="sans-serif">With the original code ( </font><font size=2 color=red face="sans-serif"><b>typedef
long time_base_seconds;), </b></font><font size=2 face="sans-serif">it
would do 8 bytes subtraction(treating <b><i>tv_usec</i></b> as unsigned
long long) while</font>
<br><font size=2 face="sans-serif">executing the second line (highlighted
code in following piece of code) below. And that would screw up the value
of the<b> <i>tv_sec</i></b> field which</font>
<br><font size=2 face="sans-serif">is right before tv_usec field in the
structure.</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">DelayInterval operator-(const Timeval&
arg1, const Timeval& arg2) {</font>
<br><font size=2 face="sans-serif"> time_base_seconds secs = arg1.seconds()
- arg2.seconds();</font>
<br><font size=2 face="sans-serif"><b> time_base_seconds usecs =
arg1.useconds() - arg2.useconds();</b></font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> if (usecs < 0) {</font>
<br><font size=2 face="sans-serif"> usecs += MILLION;</font>
<br><font size=2 face="sans-serif"> --secs;</font>
<br><font size=2 face="sans-serif"> }</font>
<br><font size=2 face="sans-serif"> if (secs < 0)</font>
<br><font size=2 face="sans-serif"> return DELAY_ZERO;</font>
<br><font size=2 face="sans-serif"> else</font>
<br><font size=2 face="sans-serif"> return DelayInterval(secs,
usecs);</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br>
<br><font size=2 face="sans-serif">I hope this helps.</font>
<br>
<br><font size=2 face="sans-serif">Thanks</font>
<br><font size=2 face="sans-serif">Ishwar</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Mike Gilorma <mike.gilorma@apogeelabs.com></b>
</font>
<br><font size=1 face="sans-serif">Sent by: live-devel-bounces@ns.live555.com</font>
<p><font size=1 face="sans-serif">06/10/2008 05:15 AM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
LIVE555 Streaming Media - development & use <live-devel@ns.live555.com></font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">LIVE555 Streaming Media - development
& use <live-devel@ns.live555.com></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [Live-devel] Problems with streaming
live h264 video on TI da
Vinci platform.</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>I have one of those board here and was thinking about
trying to port<br>
live555 over to it. Are you running Virtual Logix Linux or did you<br>
actually port it over to the DSP? If you can send me your test code
or<br>
project I can help debug.<br>
<br>
On Tue, 2008-06-10 at 17:46 +0800, Amit Lobo wrote:<br>
> Hi All,<br>
> <br>
> I am able to port and run Live555 on DSP/BIOS of EVM6437.The test
I<br>
> did is reading stored h264 video from a file.<br>
> <br>
> Now when I try to use live frames from the encoder I face problem<br>
> after 1 sec of video play.I can see the first 1 sec video properly,but<br>
> later after 1 sec it looks like something goes wrong with the RTP.The<br>
> client I am using is VLC media player.<br>
> Want to know if anybody has face similar problem.<br>
> <br>
> Thanks in advance <br>
> <br>
> Amit<br>
> _______________________________________________<br>
> live-devel mailing list<br>
> live-devel@lists.live555.com<br>
> http://lists.live555.com/mailman/listinfo/live-devel<br>
<br>
<br>
_______________________________________________<br>
live-devel mailing list<br>
live-devel@lists.live555.com<br>
http://lists.live555.com/mailman/listinfo/live-devel<br>
</tt></font>
<br>