Displaying 2 results from an estimated 2 matches for "111110ab".
Did you mean:
1111101
2008 Nov 06
2
libFLAC header checking
In stream_decoder.c function find_metadata_() checks whether a file is
valid or not. There are 4 cases it recognizes:
1) file begins with 'fLaC'
2) file begins with ID3 (skipped), followed by 'fLaC'
3) file may begin with 11111111 111110?? sync code (or 11111111111110,
depends on endianess i suppose). That is - a raw file with FLAC frames,
without header (right?).
4) file begins
2008 Dec 10
0
libFLAC header checking
...heck the find_metadata_() function to make sure it
> only accepts real FLAC sync codes, not the MP3 ones? Or at least
> mention in the documentation that FLAC__STREAM_DECODER_READ_FRAME
> status doesn't means that stream info is available.
Further information:
FLAC header:
11111111 111110AB and so on
A =
0 - mandatory
1 - reserved
B =
0 - fixed-blocksize
1 - variable-blocksize
CCCC =
0000 - reserved
0001 - 192 samples
0010-0101 - 576 * (2^(n-2)) samples
0110 - get 8 bit (blocksize-1) from end of header
0111 - get 16 bit (blocksize-1) from...