<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.elphel.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cspan64</id>
	<title>ElphelWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.elphel.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cspan64"/>
	<link rel="alternate" type="text/html" href="https://wiki.elphel.com/wiki/Special:Contributions/Cspan64"/>
	<updated>2026-08-03T02:29:15Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.elphel.com/index.php?title=Talk:Theora&amp;diff=2740</id>
		<title>Talk:Theora</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=Talk:Theora&amp;diff=2740"/>
		<updated>2007-09-29T19:02:59Z</updated>

		<summary type="html">&lt;p&gt;Cspan64: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Outstanding issues ==&lt;br /&gt;
&lt;br /&gt;
I think, I&#039;ve found a fix for the second issue (halt after 45 minutes) in theora_str:&lt;br /&gt;
Replace this function in main.c:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
inline Timestamp_t GetTimestamp(void)&lt;br /&gt;
{&lt;br /&gt;
	struct timeval tv;&lt;br /&gt;
	gettimeofday(&amp;amp;tv, NULL);&lt;br /&gt;
//	return (Timestamp_t) ((tv.tv_sec * TimestampTicks) + tv.tv_usec); // old&lt;br /&gt;
	return (( (Timestamp_t) tv.tv_sec * TimestampTicks) + tv.tv_usec); // fixing the 45-min overflow&lt;br /&gt;
	// (blow up 32 to 64 bits _before_ doing the calculations which otherwise give an overflow)&lt;br /&gt;
	// See glib/gtimer.h how the they handle timevals without any multiply,&lt;br /&gt;
	// but the small amount of time saved might not be of any concern here.&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I just _think_ this is the bug, because I don&#039;t have a camera yet to test it.&lt;br /&gt;
Hopefully we can order one soon.&lt;br /&gt;
I&#039;m really confident, that is is the right fix, because the error is obvious.&lt;br /&gt;
The bug was a strong argument against your cameras, so I looked for it.&lt;br /&gt;
&lt;br /&gt;
I post this here because I found no other place to do so and couldn&#039;t even find the theora_str files in the heck of the CVS tree.&lt;br /&gt;
&lt;br /&gt;
Greetings --[[User:Cspan64|Cspan64]] 14:02, 29 September 2007 (CDT)&lt;/div&gt;</summary>
		<author><name>Cspan64</name></author>
	</entry>
</feed>