Decompresses input using the codec matching its magic byte.
The decompressed data.
The compressed data; the first byte must be a recognised magic byte.
if input is empty or the magic byte is not recognised.