truemotion2: Sanitize tm2_read_header()