vaapi_encode: Fix fallback when input does not match any format