I'm coding the adaptive huffman algorithm and i have a problem. Reading a JPG file byte after byte i eventually bump on this hex value 00. Which my program reads as '0'.
Check the picture: http://shrani.si/f/u/Ub/3Yv2Q0LA/napaka.jpg
AS you see, the first two chars are represented with a value before the char. -somenumber 'char'.
In the third case, just the zero is passed trought, but my algorithm doesnt do anything with it, as it is not representive as char. How could i fix this, i need to store also these values into my tree so i can compress and eventually decompress.
Cheers