lavc: Add an internal wrapper around get_format()

It will be useful in the following commits.
7 files changed