h2645_parse: compute the actual data length, without trailing paddding