wvdec: split block header parsing into a separate file