<br><br><div class="gmail_quote">On Wed, Aug 18, 2010 at 2:01 PM, Noah K <span dir="ltr">&lt;<a href="mailto:bodhileok@gmail.com">bodhileok@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Wed, Aug 18, 2010 at 12:04 PM, Robert McNamara<br>
<div><div></div><div class="h5">&lt;<a href="mailto:robert.mcnamara@gmail.com">robert.mcnamara@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Aug 18, 2010 at 11:39 AM, Robert McNamara<br>
&gt; &lt;<a href="mailto:robert.mcnamara@gmail.com">robert.mcnamara@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Aug 18, 2010 at 11:34 AM, Robert McNamara<br>
&gt;&gt; &lt;<a href="mailto:robert.mcnamara@gmail.com">robert.mcnamara@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Wed, Aug 18, 2010 at 11:22 AM, Noah K &lt;<a href="mailto:bodhileok@gmail.com">bodhileok@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; OK, the libbluray resync (r25723, thanks Robert!) fixed the second<br>
&gt;&gt;&gt;&gt; segfault (on exit for all BDMV), but not the first (on start for<br>
&gt;&gt;&gt;&gt; some).<br>
&gt;&gt;&gt;&gt; I&#39;ll dig a little more when I have time and maybe take to<br>
&gt;&gt;&gt;&gt; libbluray-devel.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Looks like ii is ending up -1, which is likely invalid.  I&#39;ve reported it<br>
&gt;&gt;&gt; but if I don&#39;t hear anything by the time I get home, I&#39;ll conjure up a<br>
&gt;&gt;&gt; patch.<br>
&gt;&gt;&gt; Robert<br>
&gt;&gt;<br>
&gt;&gt; PS, If you want to try, you could see about adding something like<br>
&gt;&gt;     if (ii &lt;= 0) {<br>
&gt;&gt;         return 0;<br>
&gt;&gt;     }<br>
&gt;&gt; right above like 441 in clpi_parse.c, which is:<br>
&gt;&gt;     spn = (entry-&gt;coarse[ii].spn_ep &amp; ~0x1FFFF) + entry-&gt;fine[jj].spn_ep;<br>
&gt;&gt; Note that I haven&#39;t looked very close, so please forgive me if this does<br>
&gt;&gt; nothing at all ;)<br>
&gt;&gt; Robert<br>
&gt;<br>
&gt; if you could also try changing line 380:<br>
&gt;     if (pts &gt; timestamp) {<br>
&gt; to<br>
&gt;     if (pts &gt; timestamp &amp;&amp; ii) {<br>
&gt; I would be much obliged.<br>
&gt; Robert<br>
&gt;<br>
<br>
</div></div>Robert, that did the trick.<br>
<br>
Turns out, though, that only one of the five movies that were<br>
segfaulting was as a result of this problem (and I had assumed they<br>
were all the same problem). The others are segfaulting even on just<br>
the m2ts file. In case you&#39;re interested:<br>
<div class="im"><br>
Program received signal SIGSEGV, Segmentation fault.<br>
</div>0xb79e5fba in HandleStreamChange (data=0xaf27200) at avformatdecoder.cpp:846<br>
846         int cnt = decoder-&gt;ic-&gt;nb_streams;<br>
<br>
But I will start a different thread for that, with the bt.<br>
Thanks for the fix!<br>
<font color="#888888">Noah<br>
</font><div><div></div><div class="h5"><br></div></div></blockquote><div><br></div><div>At least (or perhaps, unfortunately) that one is in our code.  We can figure it out, though.</div><div><br></div><div>To verify, *only* the change to line 380 (the second change suggested) was necessary, right?</div>
<div><br></div><div>Robert </div></div>