<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi,</p>
<p><br>
</p>
<p>No, there is no guarantee that a valid frame header won't appear
in the data, it is just reasonable unlikely. Therefore, a decoder
should take this possibility into account.</p>
<p><br>
</p>
<p>Kind regards, Martijn van Beurden<br>
</p>
<br>
<div class="moz-cite-prefix">Op 30-10-17 om 04:33 schreef Haolei Ye:<br>
</div>
<blockquote type="cite"
cite="mid:SYXPR01MB175741987FCE785CAF85FB96AF590@SYXPR01MB1757.ausprd01.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;"
dir="ltr">
<p>Hi FLAC developers,</p>
<p><br>
</p>
<p>This is Saki, a student from Australian National University
currently working on FLAC decoding with GPU acceleration. I am
now facing a problem of locating the FLAC frame header. I am
now trying to find a way to find the nearest frame header
after a specific byte. I have already filtered the invalid
data, check the CRC-8 at the end of file. But I am still
finding some incorrect frame header. My question is: is the
design of FLAC frame header could be guaranteed that it won't
be appears in the central of the frame data, i.e. the subframe
content? If so, I have to check again with my implementation,
but if not so, is there a way to find the nearest frame header
without seektable?</p>
<p><br>
</p>
<p>Cheers,</p>
<p>Saki<br>
</p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
flac-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:flac-dev@xiph.org">flac-dev@xiph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.xiph.org/mailman/listinfo/flac-dev">http://lists.xiph.org/mailman/listinfo/flac-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>