I too found this bug around two months back....<br>I informed too....I also agree that it is not critical error but should be resolved.<br><br>I already gave thought on it..and I feel the magic number (0x35a4e4f5) in the below line <br>
<br>cb-&gt;i_low |= (0x35a4e4f5 &gt;&gt; (h-&gt;i_frame &amp; 31) &amp; 1) &lt;&lt; 10;<br><br>from function x264_cabac_encode_flush is the issue.<br>I couldn&#39;t figure out the relation between the magic number and the h-&gt;i_frame.<br>
<br><br><br><div class="gmail_quote">2009/3/24 Ludrao <span dir="ltr">&lt;<a href="mailto:ludh264@ludrao.net">ludh264@ludrao.net</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="font-family: &#39;DejaVu Sans&#39;; font-size: 9pt; font-weight: 400; font-style: normal;">Hi all,<br>
<p style="margin: 0px; text-indent: 0px;"><br></p>I found h264 streams encoded with x264 that has a bizare sequence of trailing bits.<br>
<p style="margin: 0px; text-indent: 0px;"><br></p>This is linked to section 7.3.2.11 of the standard:<br>
<p style="margin: 0px; text-indent: 0px;"><br></p>7.3.2.11 RBSP trailing bits syntax<br>
  rbsp_trailing_bits( ) {<br>
    rbsp_stop_one_bit /* equal to 1 */<br>
    while( !byte_aligned( ) )<br>
    rbsp_alignment_zero_bit /* equal to 0 */<br>
  }<br>
<p style="margin: 0px; text-indent: 0px;"><br></p>This seems no always to be respected ?<br>
For instance I found a stream where the last byte of the slice was 0x81.<br>
The stream is using CABAC encoding.<br>
<p style="margin: 0px; text-indent: 0px;"><br></p>I have done some checking, it happens to be the case in a lot of streams encoded with x264.<br>
<p style="margin: 0px; text-indent: 0px;"><br></p>This is not really a big deals since I can just ignore the trailing bits, but still...<br>
<p style="margin: 0px; text-indent: 0px;"><br></p>Maybe I am missing something in the spec ?<br>
<p style="margin: 0px; text-indent: 0px;"><br></p>Regards,<br><font color="#888888">
<p style="margin: 0px; text-indent: 0px;"><br></p>Ludrao<br>
<p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;"><br></p></font></div><br>_______________________________________________<br>
x264-devel mailing list<br>
<a href="mailto:x264-devel@videolan.org">x264-devel@videolan.org</a><br>
<a href="http://mailman.videolan.org/listinfo/x264-devel" target="_blank">http://mailman.videolan.org/listinfo/x264-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Deepak Singh<br><br><br><br>