[flac-dev] Facing problem of decoding FLAC

Martijn van Beurden mvanb1 at gmail.com
Mon Oct 30 17:14:28 UTC 2017


Hi,


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.


Kind regards, Martijn van Beurden


Op 30-10-17 om 04:33 schreef Haolei Ye:
>
> Hi FLAC developers,
>
>
> 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?
>
>
> Cheers,
>
> Saki
>
>
>
> _______________________________________________
> flac-dev mailing list
> flac-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/flac-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xiph.org/pipermail/flac-dev/attachments/20171030/323348f9/attachment.html>


More information about the flac-dev mailing list