Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: FLAC CODEC BLOCK SIZE (Read 2824 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

FLAC CODEC BLOCK SIZE

Hi All,
          Can you please let me know how the  flac reference code derived  the MAX BLOCK SIZE  65536



Regards,
Raghunath.K.P

 

FLAC CODEC BLOCK SIZE

Reply #1
I don't know, but it looks like a "binary" number...

With 16 bits you can count from 0 to 65,535.  If those binary numbers represent memory addresses, zero is also a valid address, which gives you a total of 65,536 different memory locations. 


1111 1111 1111 1111 (binary) = 65,535* (decimal) = FFFF (hexadecimal)



* This assumes unsigned 16-bit integers.  With 16-bit signed integers (i.e. 16-bit WAV files), the 16th bit represents the +/- sign, and you can count from -32,768 to +32,767