<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 1/06/2009, at 5:49 PM, Jean-Yves Avenard wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi<br><br>2009/6/1 Steven Ellis &lt;<a href="mailto:steven@openmedia.co.nz">steven@openmedia.co.nz</a>>:<br><blockquote type="cite">It appears that Jean thinks the issue may reside in the version of ffmpeg<br></blockquote><blockquote type="cite">that 0.21-fixes is based on.<br></blockquote><blockquote type="cite">Steve<br></blockquote><br>It doesn't "appear" :)<br><br>It crashed there:<br>#0 &nbsp;0xb7047cc5 in decode_slice_header (h=0xa396d600, h0=0xa396d600) at<br>h264.c:3834<br><br>There you find:<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;h->prev_frame_num++;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;h->prev_frame_num %= 1&lt;&lt;h->sps.log2_max_frame_num;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s->current_picture_ptr->frame_num= h->prev_frame_num;<br>&lt;---- crash here<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;execute_ref_pic_marking(h, NULL, 0);<br><br>the crash occurs because is s->current_picture_ptr is NULL ... This<br>should never happened ...<br><br>Looking at the more recent ffmpeg, even if that code there has been<br>removed, it still assumes later than s->current_picture_ptr is<br>defined. So I'm guessing the crash you produced would have happened as<br>well, just not in the same area of the code.<br></div></blockquote><div><br></div></div><div><br></div><div>Thanks for clarifying that. So any thoughts on why this value is NULL?</div><div><br></div><div>Steve</div><div><br></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Steven Ellis - Technical Director<br>OpenMedia Limited<br>email &nbsp;&nbsp;-&nbsp;<a href="mailto:steven@openmedia.co.nz">steven@openmedia.co.nz</a><br>website -&nbsp;<a href="http://www.openmedia.co.nz/">http://www.openmedia.co.nz</a><br></div></div></span> </div><br></body></html>