lavc: Use hardware config information in ff_get_format()