lavc: Add an internal wrapper around get_format()