Fix a bug in the frame decoding where the header was included in the frame size