Make hex_to_data a lavf internal function